MatrixBerryCore
|
LOG4JCONFIGURATOR simplifies log4j configuration, especially when Parallel Computing Toolbox is used. In the latter case the class forwards the logs of different processees in separate log files. More...
Static Public Member Functions | |
static function | isConfigured () |
static function | isLocked () |
static function | configureSimply (in logLevel, in varargin) |
static function | getLogger (in loggerName, in isSuffix) |
GETLOGGER - gets logger for caller (it may be either script or function or method of some class) More... | |
static function | lockConfiguration () |
static function | unlockConfiguration () |
static function | getLastLogPropStr () |
virtual static function | getMainLogFileName () |
virtual static function | configure (in confSource) |
Public Attributes | |
Constant Property | MASTER_LOG_FILE_NAME |
Constant Property | CHILD_LOG_FILE_NAME_PREFIX |
Constant Property | LOG_FILE_EXT |
Constant Property | MAIN_LOG_FILE_PREFIX |
Constant Property | SP_MAIN_LOG_FILE_NAME |
Constant Property | SP_CUR_PROCESS_NAME |
Constant Property | SP_LOG_DIR_WITH_SEP |
Constant Property | SP_LOG_FILE_EXP |
Protected Member Functions | |
function | getMainLogFileNameInternal (in self) |
GETMAINLOGFILENAMEINTERNAL - returns a full name of the main log file. More... | |
function | getShortMainLogFileNameInternal (in self) |
GETMAINLOGFILENAME - returns a short name (without path) of the main log file. More... | |
function | getCurProcessNameInternal (in self) |
GETCURPROCESSNAME - returns a name of currently running process. More... | |
function | getMainLogFilePathInternal (in self) |
function | configureInternal (in self, in logPropStr, in varargin) |
CONFIGURE - performs log4j configuration using a log4j property string as a source. More... | |
Static Protected Member Functions | |
static function | getSetConfStatus (in varargin) |
static function | getSetLockStatus (in varargin) |
static function | getSetLogPropStr (in varargin) |
LOG4JCONFIGURATOR simplifies log4j configuration, especially when Parallel Computing Toolbox is used. In the latter case the class forwards the logs of different processees in separate log files.
* The Configurator keeps track of configuration attempts (this works * only within a single thread). When configuration is performed using * configureInternal, the latest log4j property string is stored and can * then be retrieved using getLastLogPropStr. * * By default, log4j can be reconfigured by successive calls to its * configuration methods. However, if the latest configuration is locked * using lockConfiguration, subsequent calls to either configureSimply * or configureInternal will result in a warning with no configuration * change, until unlockConfiguration is called. *
Definition at line 24 of file Log4jConfigurator.m.
|
staticvirtual |
|
protected |
|
static |
|
protected |
GETCURPROCESSNAME - returns a name of currently running process.
|
static |
|
static |
GETLOGGER - gets logger for caller (it may be either script or function or method of some class)
|
staticvirtual |
Reimplemented in mxberry::test::log::Log4jConfigurator, and mxberry::log::log4j::test::Log4jConfigurator.
|
protected |
GETMAINLOGFILENAMEINTERNAL - returns a full name of the main log file.
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
GETMAINLOGFILENAME - returns a short name (without path) of the main log file.
|
static |
|
static |
|
static |
|
static |
Constant Property mxberry::log::log4j::Log4jConfigurator::CHILD_LOG_FILE_NAME_PREFIX |
Definition at line 32 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::LOG_FILE_EXT |
Definition at line 34 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::MAIN_LOG_FILE_PREFIX |
Definition at line 36 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::MASTER_LOG_FILE_NAME |
Definition at line 30 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::SP_CUR_PROCESS_NAME |
Definition at line 40 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::SP_LOG_DIR_WITH_SEP |
Definition at line 42 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::SP_LOG_FILE_EXP |
Definition at line 44 of file Log4jConfigurator.m.
Constant Property mxberry::log::log4j::Log4jConfigurator::SP_MAIN_LOG_FILE_NAME |
Definition at line 38 of file Log4jConfigurator.m.