Logging/src/LoggingClient.php
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
        );
    }
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
        );
    }
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 ) ; }
Fetches a logger which will write log entries to Stackdriver Logging.

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

@param string $name The name of the log to write entries to.
@param array $options [optional] {
Configuration options.

@type array $resource The
[monitored resource](https://cloud.google.com/logging/docs/api/reference/rest/v2/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
Fetches a logger which will write log entries to Stackdriver Logging .