https://github.com/vohinc/laravel-google-logging
Laravel google logging handler
https://github.com/vohinc/laravel-google-logging
gcp laravel logging
Last synced: 6 months ago
JSON representation
Laravel google logging handler
- Host: GitHub
- URL: https://github.com/vohinc/laravel-google-logging
- Owner: vohinc
- License: mit
- Created: 2020-06-25T06:50:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T08:04:07.000Z (about 6 years ago)
- Last Synced: 2024-09-19T11:43:48.669Z (almost 2 years ago)
- Topics: gcp, laravel, logging
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Google Logging Handler
Laravel google logging handler
## Requirement
* Laravel 5.8 or above
* Logging Admin Role in Google Cloud Platform IAM
## Install
```shell
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',
],
],
```