Class Logger
This is only the Wrapper for a PSR Logger and not the actual Logger. Implements some convenience functions for better logging.
package |
NextEvent\PHPSDK\Util |
---|
__construct(\Psr\Log\LoggerInterface $logger = null)
If no logger defined, provide mock replacement with void functions.
\Psr\Log\LoggerInterface
getLogger() : \Psr\Log\LoggerInterface|null
\Psr\Log\LoggerInterface|null
log(mixed $level, string $message, array $context = array()) : void
mixed
string
array
setDefaultContext(array $defaultContext = array()) : $this
array
$this
wrapLogger(\Psr\Log\LoggerInterface $logger = null, array $defaultContext = array()) : \NextEvent\PHPSDK\Util\Log\Logger
If no logger given, use logger mock.
Throws |
|
---|
\Psr\Log\LoggerInterface
array
\NextEvent\PHPSDK\Util\Log\Logger