PHP 인터페이스 Arcanedev\LogViewer\Contracts\LogViewer

저자: ARCANEDEV ([email protected])
상속: extends Arcanedev\LogViewer\Contracts\Patternable
파일 보기 프로젝트 열기: ARCANEDEV/LogViewer 0 사용 예제들

공개 메소드들

메소드 설명
all ( ) : Arcanedev\LogViewer\Entities\LogCollection Get all logs.
count ( ) : integer Get logs count.
dates ( ) : array List the log files (only dates).
delete ( string $date ) : boolean Delete the log.
download ( string $date, string | null $filename = null, array $headers = [] ) : BinaryFileResponse Download a log file.
entries ( string $date, string $level = 'all' ) : Arcanedev\LogViewer\Entities\LogEntryCollection Get the log entries.
files ( ) : array List the log files.
get ( string $date ) : Arcanedev\LogViewer\Entities\Log Get a log.
isEmpty ( ) : boolean Determine if the log folder is empty or not.
levels ( boolean | false $flip = false ) : array Get the log levels.
levelsNames ( string | null $locale = null ) : array Get the translated log levels.
menu ( boolean | true $trans = true ) : array Get logs menu.
paginate ( integer $perPage = 30 ) : Illuminate\Pagination\LengthAwarePaginator Paginate all logs.
setPath ( string $path ) : Arcanedev\LogViewer\LogViewer Set the log storage path.
stats ( ) : array Get logs statistics.
statsTable ( string | null $locale = null ) : StatsTable Get logs statistics table.
total ( string $level = 'all' ) : integer Get entries total from all logs.
tree ( boolean | false $trans = false ) : array Get logs tree.
version ( ) : string Get the LogViewer version.

메소드 상세

all() 공개 메소드

Get all logs.
public all ( ) : Arcanedev\LogViewer\Entities\LogCollection
리턴 Arcanedev\LogViewer\Entities\LogCollection

count() 공개 메소드

Get logs count.
public count ( ) : integer
리턴 integer

dates() 공개 메소드

List the log files (only dates).
public dates ( ) : array
리턴 array

delete() 공개 메소드

Delete the log.
public delete ( string $date ) : boolean
$date string
리턴 boolean

download() 공개 메소드

Download a log file.
public download ( string $date, string | null $filename = null, array $headers = [] ) : BinaryFileResponse
$date string
$filename string | null
$headers array
리턴 Symfony\Component\HttpFoundation\BinaryFileResponse

entries() 공개 메소드

Get the log entries.
public entries ( string $date, string $level = 'all' ) : Arcanedev\LogViewer\Entities\LogEntryCollection
$date string
$level string
리턴 Arcanedev\LogViewer\Entities\LogEntryCollection

files() 공개 메소드

List the log files.
public files ( ) : array
리턴 array

get() 공개 메소드

Get a log.
public get ( string $date ) : Arcanedev\LogViewer\Entities\Log
$date string
리턴 Arcanedev\LogViewer\Entities\Log

isEmpty() 공개 메소드

Determine if the log folder is empty or not.
public isEmpty ( ) : boolean
리턴 boolean

levels() 공개 메소드

Get the log levels.
public levels ( boolean | false $flip = false ) : array
$flip boolean | false
리턴 array

levelsNames() 공개 메소드

Get the translated log levels.
public levelsNames ( string | null $locale = null ) : array
$locale string | null
리턴 array

menu() 공개 메소드

Get logs menu.
public menu ( boolean | true $trans = true ) : array
$trans boolean | true
리턴 array

paginate() 공개 메소드

Paginate all logs.
public paginate ( integer $perPage = 30 ) : Illuminate\Pagination\LengthAwarePaginator
$perPage integer
리턴 Illuminate\Pagination\LengthAwarePaginator

setPath() 공개 메소드

Set the log storage path.
public setPath ( string $path ) : Arcanedev\LogViewer\LogViewer
$path string
리턴 Arcanedev\LogViewer\LogViewer

stats() 공개 메소드

Get logs statistics.
public stats ( ) : array
리턴 array

statsTable() 공개 메소드

Get logs statistics table.
public statsTable ( string | null $locale = null ) : StatsTable
$locale string | null
리턴 Arcanedev\LogViewer\Tables\StatsTable

total() 공개 메소드

Get entries total from all logs.
public total ( string $level = 'all' ) : integer
$level string
리턴 integer

tree() 공개 메소드

Get logs tree.
public tree ( boolean | false $trans = false ) : array
$trans boolean | false
리턴 array

version() 공개 메소드

Get the LogViewer version.
public version ( ) : string
리턴 string