LogManager
in package
The LogManager will provide instances of "LoggerInterface".
Table of Contents
Constants
- DEFAULT_LOGGER = 'psr_log'
Properties
- $channels : mixed
Methods
- getLog() : LoggerInterface
- Find or create a logger.
Constants
DEFAULT_LOGGER
public
mixed
DEFAULT_LOGGER
= 'psr_log'
Properties
$channels
private
mixed
$channels
= []
Methods
getLog()
Find or create a logger.
public
getLog([string $channel = 'default' ]) : LoggerInterface
This implementation will look for a service "log.{NAME}". If none is defined, then it will fallback to the "psr_log" service.
Parameters
- $channel : string = 'default'
-
Symbolic name of the intended log. This should correlate to a service "log.{NAME}".