vivante-health / monolog-stackdriver-handler
Stackdriver Handler based on Monolog StreamHandler
v1.0.1
2020-01-09 14:06 UTC
Requires
- php: ^7.0
- monolog/monolog: ^1.23
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-15 21:30:45 UTC
README
Monolog Handler Structured Logging [https://cloud.google.com/logging/docs/structured-logging]
This handler is GCP_PROJECT
ID agnostic.
Extends Monolog\Handler\StreamHandler
setting the formatter to JsonFormatter
and adding severity
field, while eliminating unused information.
Installation
composer require vivante-health/monolog-stackdriver-handler
Basic Usage
<?php use VivanteHealth\MonologStackdriverHandler\StackdriverHandler; $log = new Logger('name'); $log->pushHandler( new StackdriverHandler() );
License
vivante-health/monolog-stackdriver-handler is licensed under the MIT License - see the LICENSE file for details