프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$handlers | Monolog\Handler\HandlerInterface[] | Array of handlers | |
$logger | Monolog\Logger | Logger | |
$loggerOptions | array | Array of options | |
$processors | callable[] | Array of processors |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
addHandlers ( array $handlers ) | Add handlers to the Logger | |
addProcessors ( array $processors ) | Add processors to the Logger |
public load ( ) : Monolog\Logger | ||
리턴 | 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 |
리턴 | 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 |
리턴 | callable[] | Array of Monolog processors |
protected Monolog\Handler\HandlerInterface[] $handlers | ||
리턴 | Monolog\Handler\HandlerInterface[] |