Property | Type | Description | |
---|---|---|---|
$levels | array | The Log levels. | |
$logger | Psr\Log\LoggerInterface | Instance of Psr\Log\LoggerInterface |
Method | Description | |
---|---|---|
__construct ( |
Initialize the logger instance | |
addStream ( string $path, integer $level, boolean $bubble = true ) : Monolog\Handler\StreamHandler | Create a neaw stream handler | |
error ( string $message ) : boolean | Log the error is error logging is enabled. | |
info ( string $content ) : boolean | Log any output if output logging is enabled | |
write ( string $content, string $level ) : mixed | Write the log to the specified stream |
Method | Description | |
---|---|---|
getDefaultFormatter ( ) : Monolog\Formatter\LineFormatter | Get a default Monolog formatter instance | |
parseLevel ( string $level ) : integer | Parse the string level into a Monolog constant. |
public __construct ( |
||
$logger |
protected getDefaultFormatter ( ) : Monolog\Formatter\LineFormatter | ||
return | Monolog\Formatter\LineFormatter |
protected parseLevel ( string $level ) : integer | ||
$level | string | |
return | integer |