Package | Description |
---|---|
com.google.cloud.logging |
A client for Cloud Logging - Real-time log management and analysis.
|
Modifier and Type | Method and Description |
---|---|
LogEntry |
LogEntry.Builder.build()
Creates a
LogEntry object for this builder. |
static LogEntry |
Instrumentation.createDiagnosticEntry(String libraryName,
String libraryVersion)
The helper method to generate a log entry with diagnostic instrumentation data.
|
LogEntry |
LogEntryIterator.next() |
static LogEntry |
LogEntry.of(Payload<?> payload)
Creates a
LogEntry object given the entry payload. |
static LogEntry |
LogEntry.of(String logName,
com.google.cloud.MonitoredResource resource,
Payload<?> payload)
Creates a
LogEntry object given the log name, the monitored resource and the entry
payload. |
Modifier and Type | Method and Description |
---|---|
List<LogEntry> |
LogEntryServerStream.convert(TailLogEntriesResponse resp) |
Iterator<LogEntry> |
LogEntryServerStream.iterator() |
com.google.api.gax.paging.Page<LogEntry> |
Logging.listLogEntries(Logging.EntryListOption... options)
Lists log entries.
|
com.google.api.core.ApiFuture<com.google.api.gax.paging.AsyncPage<LogEntry>> |
Logging.listLogEntriesAsync(Logging.EntryListOption... options)
Sends a request for listing log entries.
|
static com.google.cloud.Tuple<Boolean,Iterable<LogEntry>> |
Instrumentation.populateInstrumentationInfo(Iterable<LogEntry> logEntries)
Populates entries with instrumentation info which is added in separate log entry
|
default Iterable<LogEntry> |
Logging.populateMetadata(Iterable<LogEntry> logEntries,
com.google.cloud.MonitoredResource customResource,
String... exclusionClassPaths)
Populates metadata fields of the immutable collection of
LogEntry items. |
Modifier and Type | Method and Description |
---|---|
static com.google.cloud.Tuple<Boolean,Iterable<LogEntry>> |
Instrumentation.populateInstrumentationInfo(Iterable<LogEntry> logEntries)
Populates entries with instrumentation info which is added in separate log entry
|
default Iterable<LogEntry> |
Logging.populateMetadata(Iterable<LogEntry> logEntries,
com.google.cloud.MonitoredResource customResource,
String... exclusionClassPaths)
Populates metadata fields of the immutable collection of
LogEntry items. |
void |
Logging.write(Iterable<LogEntry> logEntries,
Logging.WriteOption... options)
Sends a request to log entries to Cloud Logging.
|
Copyright © 2023 Google LLC. All rights reserved.