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
|
|
public
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
email or emails to which send error notifications |
|
public
string
|
$fromEmail
sender of email notifications |
|
public
mixed
|
$emailSnooze
interval for sending email is 2 days |
# '2 days' |
public
callable
|
$mailer
handler for sending emails |