firevel/stackdriver-log-channel

Laravel Stackdriver log channel for Google App Engine

1.1.0 2023-08-15 19:01 UTC

This package is auto-updated.

Last update: 2024-03-13 02:38:03 UTC


README

Stackdriver log channel for Laravel compatible with Google App Engine.

This package is now DEPRECATED

Inside of Google Cloud you can send logs to Stackdriver without custom driver using env:

  LOG_CHANNEL=stderr
  LOG_STDERR_FORMATTER=Monolog\Formatter\GoogleCloudLoggingFormatter

Installation

  1. Install package with composer require firevel/stackdriver-log-channel

  2. Add to config/logging.php:

        'stackdriver' => [
            'driver' => 'custom',
            'via' => Firevel\Stackdriver\CreateStackdriverLogger::class,
            'level' => 'debug',
        ],
  1. Update your app.yaml with:
env_variables:
  LOG_CHANNEL: stackdriver