PHP Интерфейс Arcanedev\LogViewer\Contracts\LogViewer

Автор: ARCANEDEV ([email protected])
Наследование: extends Arcanedev\LogViewer\Contracts\Patternable
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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