Property | Type | Description | |
---|---|---|---|
$datetime | Carbon\Carbon | ||
$env | string | ||
$header | string | ||
$level | string | ||
$stack | string |
Method | Description | |
---|---|---|
__construct ( string $level, string $header, string $stack ) | Construct the log entry instance. | |
hasStack ( ) : boolean | Check if the entry has a stack. | |
icon ( ) : string | Get level icon. | |
isSameLevel ( string $level ) : boolean | Check if same log level. | |
jsonSerialize ( ) : array | Serialize the log entry object to json data. | |
level ( ) : string | Get translated level name with icon. | |
name ( ) : string | Get translated level name. | |
stack ( ) : string | Get the entry stack. | |
toArray ( ) : array | Get the log entry as an array. | |
toJson ( integer $options ) : string | Convert the log entry to its JSON representation. |
Method | Description | |
---|---|---|
cleanHeader ( string $header ) : string | Clean the entry header. | |
extractDatetime ( string $header ) : string | Extract datetime from the header. | |
setDatetime ( string $datetime ) : |
Set the entry date time. | |
setEnv ( string $env ) : self | Set entry environment. | |
setHeader ( string $header ) : self | Set the entry header. | |
setLevel ( string $level ) : self | Set the entry level. | |
setStack ( string $stack ) : self | Set the entry stack. |
public isSameLevel ( string $level ) : boolean | ||
$level | string | |
return | boolean |
public jsonSerialize ( ) : array | ||
return | array |