Class Log
Log
This is the primary logger for a Slim application. You may provide a Log Writer in conjunction with this Log to write to various output destinations (e.g. a file). This class provides this interface:
debug( mixed $object ) info( mixed $object ) warn( mixed $object ) error( mixed $object ) fatal( mixed $object )
This class assumes only that your Log Writer has a public
write() method that accepts any object as its one and only
argument. The Log Writer class may write or send its argument anywhere: a file,
STDERR, a remote web API, etc. The possibilities are endless.
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
mixed
|
|
public
boolean
|
|
public
mixed|false
|
|
public
mixed|false
|
|
public
mixed|false
|
|
public
mixed|false
|
|
public
mixed|false
|
|
protected
integer|false
|
integer |
FATAL
|
0 |
|
integer |
ERROR
|
1 |
|
integer |
WARN
|
2 |
|
integer |
INFO
|
3 |
|
integer |
DEBUG
|
4 |
protected static
array
|
$levels | array(
self::FATAL => 'FATAL',
self::ERROR => 'ERROR',
self::WARN => 'WARN',
self::INFO => 'INFO',
self::DEBUG => 'DEBUG'
) |
|
protected
mixed
|
$writer | |
|
protected
boolean
|
$enabled | |
|
protected
integer
|
$level | |