Description

A PSR-3 compliant logger used to write entries to Google Stackdriver Logging.

Example:

use Google\Cloud\Logging\LoggingClient;

$logging = new LoggingClient();

$psrLogger = $logging->psrLogger('my-log');
// Write entries with background batching.
use Google\Cloud\Logging\LoggingClient;

$logging = new LoggingClient();

$psrLogger = $logging->psrLogger('my-log', [
'batchEnabled' => true
]);

Type hierarchy

psr/log dev-master 1.1.3
View more packages
ortnit/logger dev-master
psr-php7/log dev-master 1.0.0
redweb-tn/codeigniter4 dev-master 4.0
resque/yii2-resque dev-master
rkr/amazon-pay-sdk-php 2.x-dev
sammet/gestion-colecciones dev-master

Class usage:

This class is used in:
Class Package
Google\Cloud\ErrorReporting\Bootstrap
google/cloud v0.132.0
Google\Cloud\Logging\LoggingClient
google/cloud v0.132.0
Google\Cloud\ErrorReporting\Bootstrap
google/cloud-error-reporting dev-master
Google\Cloud\ErrorReporting\Bootstrap
google/cloud-error-reporting v0.16.2
Google\Cloud\Logging\LoggingClient
google/cloud-logging dev-master
Google\Cloud\Logging\LoggingClient
google/cloud-logging v1.20.0
Google\Cloud\Logging\LoggingClient
google/cloud-logging v0.1.0
Google\Cloud\ErrorReporting\Bootstrap
iadj/gcloud dev-master
Google\Cloud\Logging\LoggingClient
iadj/gcloud dev-master
Google\Cloud\ErrorReporting\Bootstrap
iadj/gcloud v0.33.0
Google\Cloud\Logging\LoggingClient
iadj/gcloud v0.33.0