PHP 클래스 Cascade\Config\Loader\ClassLoader\LoggerLoader

또한 보기: ClassLoader
저자: Raphael Antonmattei ([email protected])
파일 보기 프로젝트 열기: theorchard/monolog-cascade 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( string $loggerName, array $loggerOptions = [], array $handlers = [], array $processors = [] )
$loggerName string Name of the logger
$loggerOptions array Array of logger options
$handlers array Array of Monolog handlers
$processors array Array of processors

load() 공개 메소드

Return the instantiated Logger object based on its name
public load ( ) : Monolog\Logger
리턴 Monolog\Logger Logger object

resolveHandlers() 공개 메소드

Resolve handlers for that Logger (if any provided) against an array of previously set up handlers. Returns an array of valid handlers.
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

resolveProcessors() 공개 메소드

Resolve processors for that Logger (if any provided) against an array of previously set up processors.
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

프로퍼티 상세

$handlers 보호되어 있는 프로퍼티

Array of handlers
protected Monolog\Handler\HandlerInterface[] $handlers
리턴 Monolog\Handler\HandlerInterface[]

$logger 보호되어 있는 프로퍼티

Logger
protected Monolog\Logger $logger
리턴 Monolog\Logger

$loggerOptions 보호되어 있는 프로퍼티

Array of options
protected array $loggerOptions
리턴 array

$processors 보호되어 있는 프로퍼티

Array of processors
protected callable[] $processors
리턴 callable[]