Logger
class Logger implements ILogger
Logger.
Properties
string | $directory | ||
string|array | |||
string | $fromEmail | ||
mixed | $emailSnooze | ||
callable | $mailer |
Methods
log($message, $priority = self::INFO)
Logs message or exception to file and sends email notification.
string
formatMessage($message)
No description
string
formatLogLine($message, $exceptionFile = NULL)
No description
string
getExceptionFile($exception)
No description
string
logException($exception, $file = NULL)
Logs exception to the file if file doesn't exist.
void
sendEmail($message)
No description
void
defaultMailer($message, $email)
Default mailer.
Details
at line 35
__construct($directory, $email = NULL, BlueScreen $blueScreen = NULL)
No description
at line 50
log($message, $priority = self::INFO)
Logs message or exception to file and sends email notification.
at line 84
protected string
formatMessage($message)
No description
at line 108
protected string
formatLogLine($message, $exceptionFile = NULL)
No description
at line 123
string
getExceptionFile($exception)
No description
at line 141
protected string
logException($exception, $file = NULL)
Logs exception to the file if file doesn't exist.
at line 161
protected void
sendEmail($message)
No description
at line 183
void
defaultMailer($message, $email)
internal |
Default mailer.