Class Logger

Monolog\Logger
Extended by Concrete\Core\Logging\Logger

Methods summary

public
# __construct( $channel = Concrete\Core\Logging\Logger::CHANNEL_APPLICATION, $logLevel = Concrete\Core\Logging\MonologLogger::DEBUG )
public
# addDatabaseHandler( $logLevel = Concrete\Core\Logging\MonologLogger::DEBUG )

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

public static
# getLevelCode( $level )

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

public
# getHandlers( )

Returns an array of handlers. Mostly for testing.

public
# getChannels( )

Returns a list of channels that have been used. Requires the database handler

public static
# clearAll( )

Clears all log entries. Requires the database handler.

public static
# clearByChannel( $channel )

Clears log entries by channel. Requires the database handler.

public static string
# getLevelDisplayName( integer $level )

Gets the name of the logging level.

public static
# getChannelDisplayName( $channel )

Constants summary

string CHANNEL_APPLICATION
# 'application'