Stackdriver Logging Client - Class Entry (1.25.5)

Reference documentation and code samples for the Stackdriver Logging Client class Entry.

An individual entry in a log.

Example:

 use Google\Cloud\Logging\LoggingClient;

$logging = new LoggingClient();

$logger = $logging->logger('my-log');

$entry = $logger->entry('my message'); 

Methods

__construct

Parameter
Name
Description
info
array

[optional] The entry's metadata.

Retrieves the entry's details.

Example:

 $info = $entry->info();
echo $info['textPayload']; 
Returns
Type
Description
array
Design a Mobile Site
View Site in Mobile | Classic
Share by: