Property | Type | Description | |
---|---|---|---|
$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 |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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 |
public load ( ) |
protected Monolog\Formatter\FormatterInterface[] $formatters | ||
return | Monolog\Formatter\FormatterInterface[] |
protected Monolog\Handler\HandlerInterface[] $handlers | ||
return | Monolog\Handler\HandlerInterface[] |
protected ConfigLoader,Cascade\Config $loader | ||
return | Cascade\Config\ConfigLoader |
protected Monolog\Logger[] $loggers | ||
return | Monolog\Logger[] |
protected array $options | ||
return | array |