PHP Class Barryvdh\Debugbar\DataCollector\LogsCollector

Inheritance: extends DebugBar\DataCollector\MessagesCollector
Afficher le fichier Open project: barryvdh/laravel-debugbar

Protected Properties

Свойство Type Description
$lines

Méthodes publiques

Méthode Description
__construct ( $path = null, $name = 'logs' )
getLevels ( ) : array Get the log levels from psr/log.
getLogs ( $file ) : array Search a string for log entries Based on https://github.com/mikemand/logviewer/blob/master/src/Kmd/Logviewer/Logviewer.php by mikemand
getLogsFile ( ) : string Get the path to the logs file
getStorageLogs ( string $path ) : array get logs apache in app/storage/logs only 24 last of current day

Méthodes protégées

Méthode Description
tailFile ( string $file, integer $lines ) : array By Ain Tohvri (ain) http://tekkie.flashbit.net/php/tail-functionality-in-php

Method Details

__construct() public méthode

public __construct ( $path = null, $name = 'logs' )

getLevels() public méthode

Based on https://github.com/mikemand/logviewer/blob/master/src/Kmd/Logviewer/Logviewer.php by mikemand
public getLevels ( ) : array
Résultat array

getLogs() public méthode

Search a string for log entries Based on https://github.com/mikemand/logviewer/blob/master/src/Kmd/Logviewer/Logviewer.php by mikemand
public getLogs ( $file ) : array
$file
Résultat array

getLogsFile() public méthode

Get the path to the logs file
public getLogsFile ( ) : string
Résultat string

getStorageLogs() public méthode

get logs apache in app/storage/logs only 24 last of current day
public getStorageLogs ( string $path ) : array
$path string
Résultat array

tailFile() protected méthode

By Ain Tohvri (ain) http://tekkie.flashbit.net/php/tail-functionality-in-php
protected tailFile ( string $file, integer $lines ) : array
$file string
$lines integer
Résultat array

Property Details

$lines protected_oe property

protected $lines