EMERG
EMERG
Constants for log levels
Logger class
__construct(\Pop\Log\Writer\WriterInterface $writer = null) : \Pop\Log\Logger
Constructor
Instantiate the logger object
\Pop\Log\Writer\WriterInterface | $writer |
addWriter(\Pop\Log\Writer\WriterInterface $writer) : \Pop\Log\Logger
Add a log writer
\Pop\Log\Writer\WriterInterface | $writer |
setTimestamp(string $format = 'Y-m-d H:i:s') : \Pop\Log\Logger
Set timestamp format
string | $format |
log(mixed $level, mixed $message, array $context = array()) : \Pop\Log\Logger
Add a log entry
mixed | $level | |
mixed | $message | |
array | $context |
emerg(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an EMERG log entry
mixed | $message | |
array | $context |
alert(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an ALERT log entry
mixed | $message | |
array | $context |
crit(mixed $message, array $context = array()) : \Pop\Log\Logger
Add a CRIT log entry
mixed | $message | |
array | $context |
err(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an ERR log entry
mixed | $message | |
array | $context |
warn(mixed $message, array $context = array()) : \Pop\Log\Logger
Add a WARN log entry
mixed | $message | |
array | $context |
notice(mixed $message, array $context = array()) : \Pop\Log\Logger
Add a NOTICE log entry
mixed | $message | |
array | $context |
info(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an INFO log entry
mixed | $message | |
array | $context |
debug(mixed $message, array $context = array()) : \Pop\Log\Logger
Add a DEBUG log entry
mixed | $message | |
array | $context |
customLog(string $content) : \Pop\Log\Logger
Write a custom log entry
string | $content |