PHP Interface Arcanedev\LogViewer\Contracts\LogViewer

Author: ARCANEDEV ([email protected])
Inheritance: extends Arcanedev\LogViewer\Contracts\Patternable
Afficher le fichier Open project: ARCANEDEV/LogViewer Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

all() public méthode

Get all logs.
public all ( ) : Arcanedev\LogViewer\Entities\LogCollection
Résultat Arcanedev\LogViewer\Entities\LogCollection

count() public méthode

Get logs count.
public count ( ) : integer
Résultat integer

dates() public méthode

List the log files (only dates).
public dates ( ) : array
Résultat array

delete() public méthode

Delete the log.
public delete ( string $date ) : boolean
$date string
Résultat boolean

download() public méthode

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

entries() public méthode

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

files() public méthode

List the log files.
public files ( ) : array
Résultat array

get() public méthode

Get a log.
public get ( string $date ) : Arcanedev\LogViewer\Entities\Log
$date string
Résultat Arcanedev\LogViewer\Entities\Log

isEmpty() public méthode

Determine if the log folder is empty or not.
public isEmpty ( ) : boolean
Résultat boolean

levels() public méthode

Get the log levels.
public levels ( boolean | false $flip = false ) : array
$flip boolean | false
Résultat array

levelsNames() public méthode

Get the translated log levels.
public levelsNames ( string | null $locale = null ) : array
$locale string | null
Résultat array

menu() public méthode

Get logs menu.
public menu ( boolean | true $trans = true ) : array
$trans boolean | true
Résultat array

paginate() public méthode

Paginate all logs.
public paginate ( integer $perPage = 30 ) : Illuminate\Pagination\LengthAwarePaginator
$perPage integer
Résultat Illuminate\Pagination\LengthAwarePaginator

setPath() public méthode

Set the log storage path.
public setPath ( string $path ) : Arcanedev\LogViewer\LogViewer
$path string
Résultat Arcanedev\LogViewer\LogViewer

stats() public méthode

Get logs statistics.
public stats ( ) : array
Résultat array

statsTable() public méthode

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

total() public méthode

Get entries total from all logs.
public total ( string $level = 'all' ) : integer
$level string
Résultat integer

tree() public méthode

Get logs tree.
public tree ( boolean | false $trans = false ) : array
$trans boolean | false
Résultat array

version() public méthode

Get the LogViewer version.
public version ( ) : string
Résultat string