class Configuration extends LogLevelMap (View source)

Properties

static array $LEVEL_MAP Log level mapping. from LogLevelMap
static array $LEVEL_COLOUR_MAP Log level colour mapping. from LogLevelMap
string $logfile Log file name.
int $verbosity Default log level.
int $console_verbosity Default log level (console).
string $console_format Console log line format.
string $file_format File log line format.

Methods

int
getLevel(string $log_level)

Gets numerical log level value.

array
getColours(string $log_level)

Gets colour.

object
setLogfile(string $logfile)

Sets log file name.

object
setVerbosity(int $verbosity)

Sets log level verbosity.

object
setConsoleVerbosity(int $verbosity)

Sets log level verbosity.

object
setLoggerConsoleFormat(int $format)

Sets console log line format.

object
setLoggerFileFormat(int $format)

Sets file log line format.

string
getLogfile()

Gets log file name.

string
getVerbosity()

Gets log level verbosity.

string
getConsoleVerbosity()

Gets log level verbosity.

string
getLoggerConsoleFormat()

Gets log line format.

string
getLoggerFileFormat()

Gets log line format.

Details

final int getLevel(string $log_level)

Gets numerical log level value.

Parameters

string $log_level Psr\Log\LogLevel

Return Value

int

final array getColours(string $log_level)

Gets colour.

Parameters

string $log_level Psr\Log\LogLevel

Return Value

array

final object setLogfile(string $logfile)

Sets log file name.

Parameters

string $logfile log file name

Return Value

object

final object setVerbosity(int $verbosity)

Sets log level verbosity.

Parameters

int $verbosity log verbosity

Return Value

object

final object setConsoleVerbosity(int $verbosity)

Sets log level verbosity.

Parameters

int $verbosity log verbosity

Return Value

object

final object setLoggerConsoleFormat(int $format)

Sets console log line format.

Parameters

int $format log line format

Return Value

object

final object setLoggerFileFormat(int $format)

Sets file log line format.

Parameters

int $format log line format

Return Value

object

final string getLogfile()

Gets log file name.

Return Value

string

final string getVerbosity()

Gets log level verbosity.

Return Value

string

final string getConsoleVerbosity()

Gets log level verbosity.

Return Value

string

final string getLoggerConsoleFormat()

Gets log line format.

Return Value

string

final string getLoggerFileFormat()

Gets log line format.

Return Value

string