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 ¶
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.
Click to show internal directories.
Click to hide internal directories.