vohinc/laravel-google-logging

Laravel Logging integrated to Google Cloud Logging

v1.0.2 2020-06-25 08:03 UTC

This package is auto-updated.

Last update: 2024-04-25 16:43:49 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',
    ],
],