blue32a/monolog-google-cloud-logging

Google Cloud Logging handler for Monolog.

Installs: 609

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/blue32a/monolog-google-cloud-logging

v1.0.0 2022-10-21 09:40 UTC

This package is auto-updated.

Last update: 2025-09-21 16:37:26 UTC


README

Test

About

Google Cloud Logging handler for Monolog.

Installation

$ composer require blue32a/monolog-google-cloud-logging

Usage

use Blue32a\MonologGoogleCloudLoggingHandler\GoogleCloudLoggingHandler;

$logger = new \Monolog\Logger();

$config = ['projectId' => 'xxxxx'];
$loggingClient = GoogleCloudLoggingHandler::factoryLoggingClient($config);
$handler = new GoogleCloudLoggingHandler('logname', $loggingClient);
$logger->pushHandler($handler);

$logger->info('Hello World!');