프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$formatters | Monolog\Formatter\FormatterInterface[] | Array of Formatter objects | |
$handlers | Monolog\Handler\HandlerInterface[] | Array of Handler objects | |
$input | string | array | Input from user. This is either a file path, a string or an array | |
$loader | Cascade\Config\ConfigLoader | Config loader | |
$loggers | Monolog\Logger[] | Array of logger objects | |
$options | array | Array of logger configuration options: (logger attributes, formatters, handlers, etc.) | |
$processors | callable[] | Array of Processor objects |
메소드 | 설명 | |
---|---|---|
__construct ( string | array $input, Cascade\Config\ConfigLoader $loader ) | Instantiate a Config object | |
configure ( ) | Configure and register Logger(s) according to the options passed in | |
load ( ) | Load config options into the options array using the injected loader |
메소드 | 설명 | |
---|---|---|
configureFormatters ( array $formatters = [] ) | Configure the formatters | |
configureHandlers ( array $handlers ) | Configure the handlers | |
configureLoggers ( array $loggers ) | Configure the loggers | |
configureProcessors ( array $processors ) | Configure the processors |
public __construct ( string | array $input, Cascade\Config\ConfigLoader $loader ) | ||
$input | string | array | User input |
$loader | Cascade\Config\ConfigLoader | Config loader object |
public configure ( ) |
protected configureFormatters ( array $formatters = [] ) | ||
$formatters | array | Array of formatter options |
protected configureHandlers ( array $handlers ) | ||
$handlers | array | Array of handler options |
protected configureLoggers ( array $loggers ) | ||
$loggers | array | Array of logger options |
protected configureProcessors ( array $processors ) | ||
$processors | array | Array of processor options |
protected Monolog\Formatter\FormatterInterface[] $formatters | ||
리턴 | Monolog\Formatter\FormatterInterface[] |
protected Monolog\Handler\HandlerInterface[] $handlers | ||
리턴 | Monolog\Handler\HandlerInterface[] |
protected ConfigLoader,Cascade\Config $loader | ||
리턴 | Cascade\Config\ConfigLoader |
protected Monolog\Logger[] $loggers | ||
리턴 | Monolog\Logger[] |
protected array $options | ||
리턴 | array |