Uses of Class
com.google.cloud.logging.Logging.WriteOption
Packages that use Logging.WriteOption
Package
Description
A client for Cloud Logging - Real-time log management and analysis.
-
Uses of Logging.WriteOption in com.google.cloud.logging
Methods in com.google.cloud.logging that return Logging.WriteOptionModifier and TypeMethodDescriptionstatic Logging.WriteOption[]Instrumentation.addPartialSuccessOption(Logging.WriteOption[] options) Adds a partialSuccess flag option to array of WriteOptionstatic Logging.WriteOptionLogging.WriteOption.autoPopulateMetadata(boolean autoPopulateMetadata) Returns an option to opt-out automatic population of log entries metadata fields that are not set.static Logging.WriteOptionLogging.WriteOption.destination(LogDestinationName destination) Returns an option to specify a log destination resource path (seeLogDestinationNamefor details)static Logging.WriteOptionSets an option to specify (key, value) pairs that are added to theLogEntry.getLabels()of each log entry written, except when a log entry already has a value associated to the same key.static Logging.WriteOptionReturns an option to specify a default log name (seeLogEntry.getLogName()) for those log entries that do not specify their own log name.static Logging.WriteOptionLogging.WriteOption.partialSuccess(boolean partialSuccess) Returns an option to set partialSuccess flag.static Logging.WriteOptionLogging.WriteOption.resource(com.google.cloud.MonitoredResource resource) Returns an option to specify a default monitored resource (seeLogEntry.getResource()) for those log entries that do not specify their own resource.Methods in com.google.cloud.logging with parameters of type Logging.WriteOptionModifier and TypeMethodDescriptionstatic Logging.WriteOption[]Instrumentation.addPartialSuccessOption(Logging.WriteOption[] options) Adds a partialSuccess flag option to array of WriteOptionvoidLogging.write(Iterable<LogEntry> logEntries, Logging.WriteOption... options) Sends a request to log entries to Cloud Logging.