Configuration
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
at line 173
final int
getLevel(string $log_level)
Gets numerical log level value.
at line 181
final array
getColours(string $log_level)
Gets colour.
at line 50
final object
setLogfile(string $logfile)
Sets log file name.
at line 62
final object
setVerbosity(int $verbosity)
Sets log level verbosity.
at line 74
final object
setConsoleVerbosity(int $verbosity)
Sets log level verbosity.
at line 86
final object
setLoggerConsoleFormat(int $format)
Sets console log line format.
at line 98
final object
setLoggerFileFormat(int $format)
Sets file log line format.
at line 109
final string
getLogfile()
Gets log file name.
at line 119
final string
getVerbosity()
Gets log level verbosity.
at line 133
final string
getConsoleVerbosity()
Gets log level verbosity.
at line 147
final string
getLoggerConsoleFormat()
Gets log line format.
at line 161
final string
getLoggerFileFormat()
Gets log line format.