Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is the option to set up a Cloud Logging processor.
func WithDefaultBestEffort ¶
func WithDefaultBestEffort() Option
WithDefaultBestEffort sets the default logging mode of operation to best effort. There are two possible logging modes of operation:
- fail-close. Without this option, this is default. The Cloud Logging client blocks to emit a log, and immediately returns an error when there's a failure.
- best effort. The Cloud Logging client emits logs asynchronously and does not return an error on failure. Calling `Stop()` flushes the logs and returns all previously encountered errors.
TODO(b/203776475): individual log requests can specify failclose or besteffort logging.
func WithLoggingClient ¶
WithLoggingClient provides a Cloud Logging client to the processor.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor is the remote Cloud Logging processor.
func NewProcessor ¶
NewProcessor creates a new Cloud Logging log processor with the given options.
Click to show internal directories.
Click to hide internal directories.