Google\Cloud\Logging\LoggingClient::logger PHP Method

logger() public method

Example: $logger = $logging->logger('my-log');
public logger ( string $name, array $options = [] ) : Logger
$name string The name of the log to write entries to.
$options array [optional] { Configuration options. @type array $resource The [monitored resource](https://cloud.google.com/logging/docs/api/reference/rest/Shared.Types/MonitoredResource) to associate log entries with. **Defaults to** type global. @type array $labels A set of user-defined (key, value) data that provides additional information about the log entry. }
return Logger
    public function logger($name, array $options = [])
    {
        return new Logger($this->connection, $name, $this->projectId, isset($options['resource']) ? $options['resource'] : null, isset($options['labels']) ? $options['labels'] : null);
    }