Property | Type | Description | |
---|---|---|---|
$config | Config class that holds options for all registered loggers This is optional, you can set up your loggers programmatically |
Method | Description | |
---|---|---|
createLogger ( string $name, array $handlers = [], array $processors = [] ) : |
Create a new Logger object and push it to the registry | |
fileConfig ( string $resource ) | Load configuration options from a file or a string | |
getConfig ( ) : array | Return the config options | |
getLogger ( string $name ) : |
Get a Logger instance by name. Creates a new one if a Logger with the provided name does not exist | |
logger ( string $name ) : |
Alias of getLogger |
public static createLogger ( string $name, array $handlers = [], array $processors = [] ) : |
||
$name | string | The logging channel |
$handlers | array | Optional stack of handlers, the first one in the array is called first, etc. |
$processors | array | Optional array of processors |
return | Newly created Logger |
public static fileConfig ( string $resource ) | ||
$resource | string | Path to config file or string or array |