Looking to hire Laravel developers? Try LaraJobs

laravel-google-logging maintained by vohinc

Description
Laravel Logging integrated to Google Cloud Logging
Author
Last update
2020/06/25 10:03 (dev-master)
License
Links
Downloads
2 057

Comments
comments powered by Disqus

Laravel Google Logging Handler

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',
    ],
],