Class Log
Simple static logging functionality that writes to files or STDERR
Namespace: Alphred
Package: Alphred
Since: Class available since 1.0.0
Used by:
Used by:
Located at Log.php
Package: Alphred
Since: Class available since 1.0.0
Used by:
Alphred::console()
Used by:
Alphred::log()
Located at Log.php
Methods summary
public
|
|
public
|
|
public
|
|
private
string
|
|
private
|
|
private
|
|
private
|
|
private
string
|
#
normalize_log_level( integer|string $level )
Normalizes the log level, returning 'INFO' or 1 if invalid |
private
string
|
|
private
boolean
|
|
private
integer
|
|
private
string
|
|
private
string
|
Magic methods summary
Properties summary
public static
array
|
$log_levels
An array that contans the valid log levels |
#
[
0 => 'DEBUG',
1 => 'INFO',
2 => 'WARNING',
3 => 'ERROR',
4 => 'CRITICAL',
]
|