Initial commit
This commit is contained in:
91
config/log-reader.php
Normal file
91
config/log-reader.php
Normal file
@ -0,0 +1,91 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Path to directory for storing log files
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is path to directory storing your log files
|
||||
|
|
||||
*/
|
||||
|
||||
'path' => storage_path('logs'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default log filename
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is default log filename that you want read from
|
||||
| automatically. In Laravel, normally this name is 'laravel.log'.
|
||||
| This string is compatible with format string in sprintf()
|
||||
| function in PHP, it's mean you can set '*.*' to read all log
|
||||
| files
|
||||
|
|
||||
*/
|
||||
|
||||
'filename' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Environment's log to read
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is information to limit reading logs entry on specify
|
||||
| environment. Example: local, product... You can set null if want
|
||||
| read from all environment
|
||||
|
|
||||
*/
|
||||
|
||||
'environment' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Level's log to read
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This array is information to limit reading logs entry from
|
||||
| specify levels. Example: ['error', 'warning']. You can set null
|
||||
| if want read from all levels.
|
||||
|
|
||||
*/
|
||||
|
||||
'level' => null,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default sort field
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is default field to sort by when reading
|
||||
|
|
||||
*/
|
||||
|
||||
'order_by_field' => 'date',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default sort direction
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is default direction to sort by when reading
|
||||
|
|
||||
*/
|
||||
|
||||
'order_by_direction' => 'asc',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Default log parser
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This is the default class used to parse log entries.
|
||||
|
|
||||
| If this setting is not set, the 'Jackiedo\LogReader\LogParser' class will
|
||||
| be used.
|
||||
|
|
||||
*/
|
||||
|
||||
'default_log_parser' => null,
|
||||
];
|
Reference in New Issue
Block a user