Skip to content

blue32a/monolog-google-cloud-logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monolog-google-cloud-logging

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!');
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy