Detailed Description
Interface for logger implementations.
Definition at line 18 of file Logger.php.
Public Member Functions | |
debug ($message) | |
info ($message) | |
warn ($message) | |
error ($message) | |
fatal ($message) | |
isDebugEnabled () | |
isInfoEnabled () | |
isWarnEnabled () | |
isErrorEnabled () | |
isFatalEnabled () | |
logByErrorType ($type, $message) | |
Static Public Member Functions | |
static | getLogger ($name) |
Member Function Documentation
◆ debug()
debug | ( | $message | ) |
Print a debug message.
- Parameters
-
$message The message
Implemented in MonologFileLogger, and Log4phpLogger.
◆ info()
info | ( | $message | ) |
Print a info message.
- Parameters
-
$message The message
Implemented in MonologFileLogger, and Log4phpLogger.
◆ warn()
warn | ( | $message | ) |
Print a warn message.
- Parameters
-
$message The message
Implemented in MonologFileLogger, and Log4phpLogger.
◆ error()
error | ( | $message | ) |
Print a error message.
- Parameters
-
$message The message
Implemented in MonologFileLogger, and Log4phpLogger.
◆ fatal()
fatal | ( | $message | ) |
Print a fatal message.
- Parameters
-
$message The message
Implemented in MonologFileLogger, and Log4phpLogger.
◆ isDebugEnabled()
isDebugEnabled | ( | ) |
Check if debug level is enabled.
- Returns
- Boolean
Implemented in MonologFileLogger, and Log4phpLogger.
◆ isInfoEnabled()
isInfoEnabled | ( | ) |
◆ isWarnEnabled()
isWarnEnabled | ( | ) |
◆ isErrorEnabled()
isErrorEnabled | ( | ) |
Check if error level is enabled.
- Returns
- Boolean
Implemented in MonologFileLogger, and Log4phpLogger.
◆ isFatalEnabled()
isFatalEnabled | ( | ) |
Check if fatal level is enabled.
- Returns
- Boolean
Implemented in MonologFileLogger, and Log4phpLogger.
◆ logByErrorType()
logByErrorType | ( | $type, | |
$message | |||
) |
Log the given message and choose the level from the given type.
- Parameters
-
$type PHP error constant (e.g. E_WARNING) $message
Implemented in AbstractLogger.
◆ getLogger()
|
static |
Get a Logger instance by name.
- Parameters
-
$name The name
- Returns
- Logger
Implemented in MonologFileLogger, and Log4phpLogger.