Package | Description |
---|---|
com.google.cloud.logging |
A client for Stackdriver Logging - Real-time log management and analysis.
|
Modifier and Type | Method and Description |
---|---|
static Logging.WriteOption |
Logging.WriteOption.labels(Map<String,String> labels)
Sets an option to specify (key, value) pairs that are added to the
LogEntry.getLabels() of each log entry written, except when a log entry already has a value
associated to the same key. |
static Logging.WriteOption |
Logging.WriteOption.logName(String logName)
Returns an option to specify a default log name (see
LogEntry.getLogName() ) for those
log entries that do not specify their own log name. |
static Logging.WriteOption |
Logging.WriteOption.resource(MonitoredResource resource)
Returns an option to specify a default monitored resource (see
LogEntry.getResource() ) for those log entries that do not specify their own resource. |
Modifier and Type | Method and Description |
---|---|
void |
Logging.write(Iterable<LogEntry> logEntries,
Logging.WriteOption... options)
Sends a request to log entries to Stackdriver Logging.
|
Copyright © 2019 Google LLC. All rights reserved.