2017 © Pedro Peláez
 

library cloud-logging

Stackdriver Logging Client for PHP

image

google/cloud-logging

Stackdriver Logging Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 37 Watchers
  • 3 Stars
  • 59,700 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 37 Versions
  • 49 % Grown

The README.md

Stackdriver Logging for PHP

Idiomatic PHP client for Stackdriver Logging., (*1)

Latest Stable Version Packagist, (*2)

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project., (*3)

Allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services., (*4)

Installation

To begin, install the preferred dependency manager for PHP, Composer., (*5)

Now install this component:, (*6)

$ composer require google/cloud-logging

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods) please see our gRPC installation guide., (*7)

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests., (*8)

Sample

require 'vendor/autoload.php';

use Google\Cloud\Logging\LoggingClient;

$logging = new LoggingClient();

// Get a logger instance.
$logger = $logging->logger('my_log');

// Write a log entry.
$logger->write('my message');

// List log entries from a specific log.
$entries = $logging->entries([
    'filter' => 'logName = projects/my_project/logs/my_log'
]);

foreach ($entries as $entry) {
    echo $entry->info()['textPayload'] . "\n";
}

Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority., (*9)

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

The Versions

16/03 2018

v1.9.4

1.9.4.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

26/02 2018

v1.9.3

1.9.3.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/02 2018

v1.9.2

1.9.2.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/02 2018

v1.9.1

1.9.1.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v1.9.0

1.9.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/01 2018

v1.8.3

1.8.3.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

05/01 2018

v1.8.2

1.8.2.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v1.8.1

1.8.1.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v1.8.0

1.8.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/12 2017

v1.7.0

1.7.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/11 2017

v1.6.2

1.6.2.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

11/11 2017

v1.6.1

1.6.1.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/11 2017

v1.6.0

1.6.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v1.5.0

1.5.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/09 2017

v1.4.0

1.4.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v1.3.2

1.3.2.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/07 2017

v1.3.1

1.3.1.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/07 2017

v1.3.0

1.3.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/05 2017

v1.2.0

1.2.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/04 2017

v1.1.0

1.1.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

31/03 2017

v1.0.0

1.0.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

10/03 2017

v0.1.0

0.1.0.0

Stackdriver Logging Client for PHP

  Sources   Download

Apache-2.0

The Requires