PHP Class Barryvdh\Debugbar\DataCollector\LogsCollector

Inheritance: extends DebugBar\DataCollector\MessagesCollector
Show file Open project: barryvdh/laravel-debugbar

Protected Properties

Property Type Description
$lines

Public Methods

Method 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

Protected Methods

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

Method Details

__construct() public method

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

getLevels() public method

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

getLogs() public method

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
return array

getLogsFile() public method

Get the path to the logs file
public getLogsFile ( ) : string
return string

getStorageLogs() public method

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

tailFile() protected method

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

Property Details

$lines protected property

protected $lines