Detailed Description

MonologFileLogger is a wrapper for the Monolog library that logs to files.

Loggers may be configured by passing configuration file name to the first created logger instance. The file must have INI file format. The following sectiona are supported:

  • Root:
    • level: default log level
    • target: location of rotating log files relative to WCMF_BASE or stream resource e.g. php://stdout
  • Logger: Keys are the logger names, values the levels (DEBUG, WARN, ...)
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 36 of file MonologFileLogger.php.

+ Inheritance diagram for MonologFileLogger:

Public Member Functions

 __construct ($name, $configFile='')
 
 debug ($message)
 
 info ($message)
 
 warn ($message)
 
 error ($message)
 
 fatal ($message)
 
 isDebugEnabled ()
 
 isInfoEnabled ()
 
 isWarnEnabled ()
 
 isErrorEnabled ()
 
 isFatalEnabled ()
 
- Public Member Functions inherited from AbstractLogger
 logByErrorType ($type, $message)
 

Static Public Member Functions

static getLogger ($name)
 

Public Attributes

const ROOT_SECTION_NAME = 'Root'
 
const LOGGER_SECTION_NAME = 'Logger'
 

Constructor & Destructor Documentation

__construct (   $name,
  $configFile = '' 
)

Constructor.

Parameters
$nameThe logger name (channel in Monolog)
$configFileA configuration file name

Definition at line 53 of file MonologFileLogger.php.

Member Function Documentation

debug (   $message)
See also
Logger::debug()

Implements Logger.

Definition at line 84 of file MonologFileLogger.php.

info (   $message)
See also
Logger::info()

Implements Logger.

Definition at line 91 of file MonologFileLogger.php.

warn (   $message)
See also
Logger::warn()

Implements Logger.

Definition at line 98 of file MonologFileLogger.php.

error (   $message)
See also
Logger::error()

Implements Logger.

Definition at line 105 of file MonologFileLogger.php.

fatal (   $message)
See also
Logger::fatal()

Implements Logger.

Definition at line 112 of file MonologFileLogger.php.

isDebugEnabled ( )
See also
Logger::isDebugEnabled()

Implements Logger.

Definition at line 119 of file MonologFileLogger.php.

isInfoEnabled ( )
See also
Logger::isInfoEnabled()

Implements Logger.

Definition at line 126 of file MonologFileLogger.php.

isWarnEnabled ( )
See also
Logger::isWarnEnabled()

Implements Logger.

Definition at line 133 of file MonologFileLogger.php.

isErrorEnabled ( )
See also
Logger::isErrorEnabled()

Implements Logger.

Definition at line 140 of file MonologFileLogger.php.

isFatalEnabled ( )
See also
Logger::isFatalEnabled()

Implements Logger.

Definition at line 147 of file MonologFileLogger.php.

static getLogger (   $name)
static
See also
Logger::getLogger()

Implements Logger.

Definition at line 154 of file MonologFileLogger.php.

Member Data Documentation

const ROOT_SECTION_NAME = 'Root'

Definition at line 38 of file MonologFileLogger.php.

const LOGGER_SECTION_NAME = 'Logger'

Definition at line 39 of file MonologFileLogger.php.