프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$datetime | Carbon\Carbon | ||
$env | string | ||
$header | string | ||
$level | string | ||
$stack | string |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | boolean |
public jsonSerialize ( ) : array | ||
리턴 | array |