MatrixBerryCore
Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
mxberry::test::log::Log4jConfigurator Class Reference

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...

Inheritance diagram for mxberry::test::log::Log4jConfigurator:
Inheritance graph
[legend]
Collaboration diagram for mxberry::test::log::Log4jConfigurator:
Collaboration graph
[legend]

Static Public Member Functions

static function configure (in confSource, in varargin)
 CONFIGURE performs log4j configuration. More...
 
static function getMainLogFileName ()
 
- Static Public Member Functions inherited from mxberry::log::log4j::Log4jConfigurator
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 configure (in confSource)
 

Public Attributes

Constant Property MASTER_LOG_FILE_NAME ='master'
 
Constant Property CHILD_LOG_FILE_NAME_PREFIX ='child'
 
Constant Property LOG_FILE_EXT =sprintf
 
Constant Property MAIN_LOG_FILE_PREFIX ='main.'
 
Constant Property SP_MAIN_LOG_FILE_NAME ='mxberry.testrunner.log4j.logfile.main.name'
 
Constant Property SP_CUR_PROCESS_NAME ='mxberry.testrunner.log4j.curProcessName'
 
Constant Property SP_LOG_DIR_WITH_SEP ='mxberry.testrunner.log4j.logfile.dirwithsep'
 
Constant Property SP_LOG_FILE_EXP ='mxberry.testrunner.log4j.logfile.ext'
 
Constant Property CONF_REPO_MGR_CLASS ='mxberry.test.conf.AdaptiveConfRepoManager'
 
- Public Attributes inherited from mxberry::log::log4j::Log4jConfigurator
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
 

Private Member Functions

function Log4jConfigurator ()
 

Additional Inherited Members

- Protected Member Functions inherited from mxberry::log::log4j::Log4jConfigurator
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 inherited from mxberry::log::log4j::Log4jConfigurator
static function getSetConfStatus (in varargin)
 
static function getSetLockStatus (in varargin)
 
static function getSetLogPropStr (in varargin)
 

Detailed Description

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.

Author
Peter Gagarinov pgaga.nosp@m.rino.nosp@m.v@gma.nosp@m.il.c.nosp@m.om
Date
2011-05-18

Definition at line 10 of file Log4jConfigurator.m.

Constructor & Destructor Documentation

◆ Log4jConfigurator()

function mxberry::test::log::Log4jConfigurator::Log4jConfigurator ( )
private

Member Function Documentation

◆ configure()

static function mxberry::test::log::Log4jConfigurator::configure ( in  confSource,
in  varargin 
)
static

CONFIGURE performs log4j configuration.

◆ getMainLogFileName()

static function mxberry::test::log::Log4jConfigurator::getMainLogFileName ( )
staticvirtual

Member Data Documentation

◆ CHILD_LOG_FILE_NAME_PREFIX

Constant Property mxberry::test::log::Log4jConfigurator::CHILD_LOG_FILE_NAME_PREFIX ='child'

Definition at line 18 of file Log4jConfigurator.m.

◆ CONF_REPO_MGR_CLASS

Constant Property mxberry::test::log::Log4jConfigurator::CONF_REPO_MGR_CLASS ='mxberry.test.conf.AdaptiveConfRepoManager'

Definition at line 38 of file Log4jConfigurator.m.

◆ LOG_FILE_EXT

Constant Property mxberry::test::log::Log4jConfigurator::LOG_FILE_EXT =sprintf

Definition at line 20 of file Log4jConfigurator.m.

◆ MAIN_LOG_FILE_PREFIX

Constant Property mxberry::test::log::Log4jConfigurator::MAIN_LOG_FILE_PREFIX ='main.'

Definition at line 22 of file Log4jConfigurator.m.

◆ MASTER_LOG_FILE_NAME

Constant Property mxberry::test::log::Log4jConfigurator::MASTER_LOG_FILE_NAME ='master'

Definition at line 16 of file Log4jConfigurator.m.

◆ SP_CUR_PROCESS_NAME

Constant Property mxberry::test::log::Log4jConfigurator::SP_CUR_PROCESS_NAME ='mxberry.testrunner.log4j.curProcessName'

Definition at line 29 of file Log4jConfigurator.m.

◆ SP_LOG_DIR_WITH_SEP

Constant Property mxberry::test::log::Log4jConfigurator::SP_LOG_DIR_WITH_SEP ='mxberry.testrunner.log4j.logfile.dirwithsep'

Definition at line 32 of file Log4jConfigurator.m.

◆ SP_LOG_FILE_EXP

Constant Property mxberry::test::log::Log4jConfigurator::SP_LOG_FILE_EXP ='mxberry.testrunner.log4j.logfile.ext'

Definition at line 35 of file Log4jConfigurator.m.

◆ SP_MAIN_LOG_FILE_NAME

Constant Property mxberry::test::log::Log4jConfigurator::SP_MAIN_LOG_FILE_NAME ='mxberry.testrunner.log4j.logfile.main.name'

Definition at line 26 of file Log4jConfigurator.m.


The documentation for this class was generated from the following file: