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