EMERGENCY
EMERGENCY = 0 : integer
Constants for log levels
Logger class
__construct(\Pop\Log\Writer\WriterInterface|array $writer = null, string $timestampFormat = 'Y-m-d H:i:s')
Constructor
Instantiate the logger object
\Pop\Log\Writer\WriterInterface|array | $writer | |
string | $timestampFormat |
addWriters(array $writers) : \Pop\Log\Logger
Add log writers
array | $writers |
addWriter(\Pop\Log\Writer\WriterInterface $writer) : \Pop\Log\Logger
Add a log writer
\Pop\Log\Writer\WriterInterface | $writer |
setLogLimit(integer $level) : \Pop\Log\Logger
Set log level limit for all log writers
integer | $level |
setTimestampFormat(string $format = 'Y-m-d H:i:s') : \Pop\Log\Logger
Set timestamp format
string | $format |
emergency(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an EMERGENCY log entry
mixed | $message | |
array | $context |
alert(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an ALERT log entry
mixed | $message | |
array | $context |
critical(mixed $message, array $context = array()) : \Pop\Log\Logger
Add a CRITICAL log entry
mixed | $message | |
array | $context |
error(mixed $message, array $context = array()) : \Pop\Log\Logger
Add an ERROR log entry
mixed | $message | |
array | $context |
warning(mixed $message, array $context = array()) : \Pop\Log\Logger
Add a WARNING 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 |
log(mixed $level, mixed $message, array $context = array()) : \Pop\Log\Logger
Add a log entry
mixed | $level | |
mixed | $message | |
array | $context |