gpxcat / laravel_log_formatter
自製的 Laravel Log 格式化
Installs: 691
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/gpxcat/laravel_log_formatter
README
Add the .env file:
LOG_CHANNEL=stack
GRAYLOG_URL=10.1.6.38
GRAYLOG_PORT=12201
IFCONFIG_URL=http://10.1.1.188:8080/ip
Add the config to your config/logging.php file:
'stack' => [ 'driver' => 'stack', 'channels' => ['daily', 'graylog'], 'ignore_exceptions' => true, // ... ],
'daily' => [ 'driver' => 'daily', // ... 'tap' => [\Gpxcat\LaravelLogFormatter\Formatter::class], // ... ],
'graylog' => [ 'driver' => 'custom', 'via' => \Gpxcat\LaravelLogFormatter\GraylogLogger::class, 'host' => env('GRAYLOG_URL', ''), 'port' => env('GRAYLOG_PORT', ''), 'level' => env('LOG_LEVEL', 'debug'), ],