Method
ConsoleLogger::__construct
Creates a logger.
Description#
public ConsoleLogger::__construct(
?Console $console = null,
string $level = 'debug',
string $source = ''
)Parameters#
- $console ?Console = null
- Where the lines go; null: STDERR
- $level string = 'debug'
- The lowest level written
- $source string = ''
- A column after the time, such as a worker number
Errors / Exceptions#
| Exception | When |
|---|---|
InvalidArgumentException | For a level that is not a PSR-3 level |