PHP 클래스 MathiasGrimm\LaravelLogKeeper\Support\LogUtil

파일 보기 프로젝트 열기: mathiasgrimm/laravel-log-keeper 1 사용 예제들

공개 메소드들

메소드 설명
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