PHP Класс MathiasGrimm\LaravelLogKeeper\Support\LogUtil

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
diffInDays ( $log, Carbon\Carbon $date ) : integer Get the diff in days for a given file and carbon date
getCompressed ( $logs, boolean $keepIndex = false ) : mixed Get all logs that follow the daily format
getDate ( $log ) : Carbon\Carbon Get a Carbon date from the file name
getLogs ( $logs, boolean $keepIndex = false ) : mixed Get all logs that follow the daily format
mapBasename ( $logs ) : mixed Map the full path to the filename.

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

diffInDays() публичный статический метод

Get the diff in days for a given file and carbon date
public static diffInDays ( $log, Carbon\Carbon $date ) : integer
$log
$date Carbon\Carbon
Результат integer

getCompressed() публичный статический метод

Get all logs that follow the daily format
public static getCompressed ( $logs, boolean $keepIndex = false ) : mixed
$logs
$keepIndex boolean
Результат mixed

getDate() публичный статический метод

Get a Carbon date from the file name
public static getDate ( $log ) : Carbon\Carbon
$log
Результат Carbon\Carbon

getLogs() публичный статический метод

Get all logs that follow the daily format
public static getLogs ( $logs, boolean $keepIndex = false ) : mixed
$logs
$keepIndex boolean
Результат mixed

mapBasename() публичный статический метод

Users/mathiasgrimm/Dropbox/Mathias/projects/github/laravel-log-keeper-with-laravel/storage/logs/laravel-2016-03-11.log will be mapped to laravel-2016-03-11.log
public static mapBasename ( $logs ) : mixed
$logs
Результат mixed