$logger
$logger : \Psr\Log\LoggerInterface
A basic logger class compatible with PHP Psr 3 standards
setup(\Psr\Log\LoggerInterface $logger, integer $verbosity = 1) : void
Sets up the logger
Works like a constructor, but it's not. This is an all static class.
\Psr\Log\LoggerInterface | $logger | Psr3 compatible logger object |
integer | $verbosity | 0: silent, 1: warning, 2: info |
setVerbosity(integer $verbosity) : void
Sets the verbosity level.
integer | $verbosity | $verbosity 0: silent, 1: warning, 2: info |
warning( $params) : void
Logs warning or more critical messages.
$params |
info( $params) : void
Logs informational or debug messages.
$params |
processParams(array $message) : void
A helper method to process log parameters.
array | $message | Message parametrized similarly to how sprintf works. |