Property | Type | Description | |
---|---|---|---|
$handlers | Monolog\Handler\HandlerInterface[] | Array of handlers | |
$logger | Monolog\Logger | Logger | |
$loggerOptions | array | Array of options | |
$processors | callable[] | Array of processors |
Method | Description | |
---|---|---|
__construct ( string $loggerName, array $loggerOptions = [], array $handlers = [], array $processors = [] ) | Constructor | |
load ( ) : Monolog\Logger | Return the instantiated Logger object based on its name | |
resolveHandlers ( array $loggerOptions, array $handlers ) : Monolog\Handler\HandlerInterface[] | Resolve handlers for that Logger (if any provided) against an array of previously set up handlers. Returns an array of valid handlers. | |
resolveProcessors ( array $loggerOptions, callable[] $processors ) : callable[] | Resolve processors for that Logger (if any provided) against an array of previously set up processors. |
Method | Description | |
---|---|---|
addHandlers ( array $handlers ) | Add handlers to the Logger | |
addProcessors ( array $processors ) | Add processors to the Logger |
public load ( ) : Monolog\Logger | ||
return | Monolog\Logger | Logger object |
public resolveHandlers ( array $loggerOptions, array $handlers ) : Monolog\Handler\HandlerInterface[] | ||
$loggerOptions | array | Array of logger options |
$handlers | array | Available Handlers to resolve against |
return | Monolog\Handler\HandlerInterface[] | Array of Monolog handlers |
public resolveProcessors ( array $loggerOptions, callable[] $processors ) : callable[] | ||
$loggerOptions | array | Array of logger options |
$processors | callable[] | Available Processors to resolve against |
return | callable[] | Array of Monolog processors |
protected Monolog\Handler\HandlerInterface[] $handlers | ||
return | Monolog\Handler\HandlerInterface[] |