PHP 클래스 Arcanedev\LogViewer\Entities\LogEntry

저자: ARCANEDEV ([email protected])
상속: implements Illuminate\Contracts\Support\Arrayable, implements Illuminate\Contracts\Support\Jsonable, implements JsonSerializabl\JsonSerializable
파일 보기 프로젝트 열기: ARCANEDEV/LogViewer

공개 프로퍼티들

프로퍼티 타입 설명
$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 ) : LogEntry 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.

메소드 상세

__construct() 공개 메소드

Construct the log entry instance.
public __construct ( string $level, string $header, string $stack )
$level string
$header string
$stack string

hasStack() 공개 메소드

Check if the entry has a stack.
public hasStack ( ) : boolean
리턴 boolean

icon() 공개 메소드

Get level icon.
public icon ( ) : string
리턴 string

isSameLevel() 공개 메소드

Check if same log level.
public isSameLevel ( string $level ) : boolean
$level string
리턴 boolean

jsonSerialize() 공개 메소드

Serialize the log entry object to json data.
public jsonSerialize ( ) : array
리턴 array

level() 공개 메소드

Get translated level name with icon.
public level ( ) : string
리턴 string

name() 공개 메소드

Get translated level name.
public name ( ) : string
리턴 string

stack() 공개 메소드

Get the entry stack.
public stack ( ) : string
리턴 string

toArray() 공개 메소드

Get the log entry as an array.
public toArray ( ) : array
리턴 array

toJson() 공개 메소드

Convert the log entry to its JSON representation.
public toJson ( integer $options ) : string
$options integer
리턴 string

프로퍼티 상세

$datetime 공개적으로 프로퍼티

public Carbon,Carbon $datetime
리턴 Carbon\Carbon

$env 공개적으로 프로퍼티

public string $env
리턴 string

$header 공개적으로 프로퍼티

public string $header
리턴 string

$level 공개적으로 프로퍼티

public string $level
리턴 string

$stack 공개적으로 프로퍼티

public string $stack
리턴 string