output

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format string

Format configures Navegos/log output encoding.

const (
	// FormatJSON encodes log entries to a machine-readable, OpenTelemetry-structured
	// format.
	FormatJSON Format = "json"
	// FormatJSONGCP encodes log entries to a machine-readable, GCP-structured format.
	// It's similar to OpenTelemetry-structured format, but the severity field
	// complies with https://cloud.google.com/logging/docs/structured-logging#special-payload-fields
	FormatJSONGCP Format = "json_gcp"
	// FormatConsole encodes log entries to a human-readable format.
	FormatConsole Format = "console"
)

func ParseFormat

func ParseFormat(format string) Format

ParseFormat parses the given format string as a supported output format, while trying to maintain some degree of back-compat with the intent of previously supported log formats.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL