Package | Description |
---|---|
com.google.cloud.logging |
A client for Cloud Logging - Real-time log management and analysis.
|
Modifier and Type | Method and Description |
---|---|
static LogDestinationName |
LogDestinationName.billingAccount(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
static LogDestinationName |
LogDestinationName.folder(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
static LogDestinationName |
LogDestinationName.fromLogName(LogName logName)
Creates a
LogDestinationName object from given LogName . |
LogDestinationName |
LogEntry.getDestination()
Returns the log path destination name type associated with log entry.
|
static LogDestinationName |
LogDestinationName.organization(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
static LogDestinationName |
LogDestinationName.project(String id)
Returns an option which sets and validates project ID resource name for log entries.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
Logging.deleteLog(String log,
LogDestinationName destination)
Deletes a log and all its log entries for given log destination (see 'logName' parameter in
https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).
|
default com.google.api.core.ApiFuture<Boolean> |
Logging.deleteLogAsync(String log,
LogDestinationName destination)
Sends a request for deleting a log and all its log entries for given log destination (see
'logName' parameter in https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry).
|
static Logging.WriteOption |
Logging.WriteOption.destination(LogDestinationName destination)
Returns an option to specify a log destination resource path (see
LogDestinationName
for details) |
LogEntry.Builder |
LogEntry.Builder.setDestination(LogDestinationName destination)
Sets the log path destination name type associated with the log entry.
|
Constructor and Description |
---|
LoggingHandler(String log,
LoggingOptions options,
com.google.cloud.MonitoredResource monitoredResource,
List<LoggingEnhancer> enhancers,
LogDestinationName destination)
Creates a handler that publishes messages to Cloud Logging.
|
Copyright © 2023 Google LLC. All rights reserved.