util

package
v3.14.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(json bool) *zap.Logger

NewLogger creates a new zap logger instance json - if true logs are in json format

func NewLoggerWithOutput added in v3.2.1

func NewLoggerWithOutput(json bool, output zapcore.WriteSyncer) *zap.Logger

NewLoggerWithOutput creates a new zap logger instance with a custom output json - if true logs are in json format output - the output writer (e.g., os.Stdout, os.Stderr)

func SetKeyValue

func SetKeyValue(vi *viper.Viper, key string, value interface{}) bool

SetKeyValue sets the value of a key in the viper config

Types

This section is empty.

Jump to

Keyboard shortcuts

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