Logger
class Logger extends Logger (View source)
Constants
CHANNEL_APPLICATION |
|
Methods
No description
Initially called - this sets up the log writer to use the concrete5 Logs database table (this is the default setting.).
When given a PSR-3 standard log level, returns the internal code for that level.
Returns an array of handlers. Mostly for testing.
Returns a list of channels that have been used. Requires the database handler.
Clears all log entries. Requires the database handler.
Clears log entries by channel. Requires the database handler.
Gets the name of the logging level.
No description
Details
__construct($channel = self::CHANNEL_APPLICATION, $logLevel = MonologLogger::DEBUG)
No description
addDatabaseHandler($logLevel = MonologLogger::DEBUG)
Initially called - this sets up the log writer to use the concrete5 Logs database table (this is the default setting.).
static
getLevelCode($level)
When given a PSR-3 standard log level, returns the internal code for that level.
getHandlers()
Returns an array of handlers. Mostly for testing.
getChannels()
Returns a list of channels that have been used. Requires the database handler.
static
clearAll()
Clears all log entries. Requires the database handler.
static
clearByChannel($channel)
Clears log entries by channel. Requires the database handler.
static string
getLevelDisplayName(int $level)
Gets the name of the logging level.
static
getChannelDisplayName($channel)
No description