vohinc / laravel-google-logging
Laravel Logging integrated to Google Cloud Logging
Installs: 2 056
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
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-11-25 17:47:35 UTC
README
Laravel google logging handler
Requirement
- Laravel 5.8 or above
- Logging Admin Role in Google Cloud Platform IAM
Install
composer require vohinc/laravel-google-logging
Config
Add a new driver to your 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',
],
],