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, ...)
Definition at line 36 of file MonologFileLogger.php.
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()
__construct | ( | $name, | |
$configFile = '' |
|||
) |
Constructor.
- Parameters
-
$name The logger name (channel in Monolog) $configFile A configuration file name
Definition at line 53 of file MonologFileLogger.php.
Member Function Documentation
◆ debug()
debug | ( | $message | ) |
◆ info()
info | ( | $message | ) |
◆ warn()
warn | ( | $message | ) |
◆ error()
error | ( | $message | ) |
◆ fatal()
fatal | ( | $message | ) |
◆ isDebugEnabled()
isDebugEnabled | ( | ) |
- See also
- Logger::isDebugEnabled()
Implements Logger.
Definition at line 119 of file MonologFileLogger.php.
◆ isInfoEnabled()
isInfoEnabled | ( | ) |
- See also
- Logger::isInfoEnabled()
Implements Logger.
Definition at line 126 of file MonologFileLogger.php.
◆ isWarnEnabled()
isWarnEnabled | ( | ) |
- See also
- Logger::isWarnEnabled()
Implements Logger.
Definition at line 133 of file MonologFileLogger.php.
◆ isErrorEnabled()
isErrorEnabled | ( | ) |
- See also
- Logger::isErrorEnabled()
Implements Logger.
Definition at line 140 of file MonologFileLogger.php.
◆ isFatalEnabled()
isFatalEnabled | ( | ) |
- See also
- Logger::isFatalEnabled()
Implements Logger.
Definition at line 147 of file MonologFileLogger.php.
◆ getLogger()
|
static |
- See also
- Logger::getLogger()
Implements Logger.
Definition at line 154 of file MonologFileLogger.php.
Member Data Documentation
◆ ROOT_SECTION_NAME
const ROOT_SECTION_NAME = 'Root' |
Definition at line 38 of file MonologFileLogger.php.
◆ LOGGER_SECTION_NAME
const LOGGER_SECTION_NAME = 'Logger' |
Definition at line 39 of file MonologFileLogger.php.