vo-hinc / laravel-google-logging
Laravel 日志集成 Google Cloud Logging
v1.0.2
2020-06-25 08:03 UTC
Requires
- google/cloud-logging: ^1.20
- illuminate/log: 5.8.* || ^6.0 || ^7.0
- illuminate/support: 5.8.* || ^6.0 || ^7.0
- monolog/monolog: ^2.1
This package is auto-updated.
Last update: 2024-09-25 17:28:42 UTC
README
Laravel Google 日志处理器
要求
- Laravel 5.8 或更高版本
- 在 Google Cloud Platform IAM 中配置日志管理员角色
安装
composer require vohinc/laravel-google-logging
配置
在 logging.php 中添加一个新的驱动程序
'google-logging' => [
'driver' => 'custom',
'via' => \Voh\LaravelGoogleLogging\LoggingDriver::class,
'level' => 'debug',
'projectId' => 'your-google-project-id',
'keyFilePath' => 'google-credential-file-path,
'logName' => 'application-log',
'labels' => [
'application' => 'my-application',
],
],