Class Logger
Logger.
- Tracy\Logger implements Tracy\ILogger
public
|
|
public
string
|
#
log( string|
Logs message or exception to file and sends email notification. |
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
#
logException(
Logs exception to the file if file doesn't exist. |
protected
|
CRITICAL,
DEBUG,
ERROR,
EXCEPTION,
INFO,
WARNING
|
public
string
|
$directory |
|
#
name of the directory where errors should be logged |
public
string|array
|
|
#
email or emails to which send error notifications |
|
public
mixed
|
$emailSnooze | '2 days' |
#
interval for sending email is 2 days |
public
callable
|
$mailer |
|
#
handler for sending emails |