PHP Класс Barryvdh\Debugbar\DataCollector\LogsCollector

Наследование: extends DebugBar\DataCollector\MessagesCollector
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$lines

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

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

Защищенные методы

Метод Описание
tailFile ( string $file, integer $lines ) : array By Ain Tohvri (ain) http://tekkie.flashbit.net/php/tail-functionality-in-php

Описание методов

__construct() публичный Метод

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

getLevels() публичный Метод

Based on https://github.com/mikemand/logviewer/blob/master/src/Kmd/Logviewer/Logviewer.php by mikemand
public getLevels ( ) : array
Результат array

getLogs() публичный Метод

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
Результат array

getLogsFile() публичный Метод

Get the path to the logs file
public getLogsFile ( ) : string
Результат string

getStorageLogs() публичный Метод

get logs apache in app/storage/logs only 24 last of current day
public getStorageLogs ( string $path ) : array
$path string
Результат array

tailFile() защищенный Метод

By Ain Tohvri (ain) http://tekkie.flashbit.net/php/tail-functionality-in-php
protected tailFile ( string $file, integer $lines ) : array
$file string
$lines integer
Результат array

Описание свойств

$lines защищенное свойство

protected $lines