class Logger extends Logger (View source)

Constants

CHANNEL_APPLICATION

Methods

__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

Details

__construct($channel = self::CHANNEL_APPLICATION, $logLevel = MonologLogger::DEBUG)

No description

Parameters

$channel
$logLevel

addDatabaseHandler($logLevel = MonologLogger::DEBUG)

Initially called - this sets up the log writer to use the concrete5 Logs database table (this is the default setting.).

Parameters

$logLevel

static getLevelCode($level)

When given a PSR-3 standard log level, returns the internal code for that level.

Parameters

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

Parameters

$channel

static string getLevelDisplayName(int $level)

Gets the name of the logging level.

Parameters

int $level

Return Value

string

static getChannelDisplayName($channel)

No description

Parameters

$channel