hack

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReplaceLoggerStringFieldValue

func AddReplaceLoggerStringFieldValue(logger zerolog.Logger, key string, newValue string) zerolog.Logger

AddReplaceLoggerStringFieldValue replaces the value of the key field in logger if present, otherwise it adds the field by doing logger.With().Str(key, newValue).Logger().

func GetLogEventStringFieldValue

func GetLogEventStringFieldValue(event *zerolog.Event, quotedKey string) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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