firevel / stackdriver-log-channel
Laravel Stackdriver log channel for Google App Engine
Installs: 20 577
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- google/cloud-error-reporting: ^0.19
- illuminate/support: >=8.0
Conflicts
- psr/log: >=3
This package is auto-updated.
Last update: 2024-11-13 04:09:56 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
-
Install package with
composer require firevel/stackdriver-log-channel
-
Add to
config/logging.php
:
'stackdriver' => [
'driver' => 'custom',
'via' => Firevel\Stackdriver\CreateStackdriverLogger::class,
'level' => 'debug',
],
- Update your
app.yaml
with:
env_variables:
LOG_CHANNEL: stackdriver