zLogger

package
v2.0.41 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 147

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogLevel added in v2.0.21

func LogLevel(str string) zerolog.Level

Types

type Config added in v2.0.38

type Config struct {
	Level string
	File  string
	Stash StashConfig
}

type StashConfig added in v2.0.38

type StashConfig struct {
	LogstashHost       string
	LogstashPort       int
	LogstashTraceLevel string
	Namespace          string
	TLS                *config.TLSConfig
	Dataset            string
}

type StringArray added in v2.0.37

type StringArray []string

func (StringArray) MarshalZerologArray added in v2.0.37

func (sa StringArray) MarshalZerologArray(arr *zerolog.Array)

type ZLogger

type ZLogger interface {
	Trace() *zerolog.Event

	Debug() *zerolog.Event

	Info() *zerolog.Event

	Warn() *zerolog.Event

	Error() *zerolog.Event

	Err(err error) *zerolog.Event

	Fatal() *zerolog.Event

	Panic() *zerolog.Event

	With() zerolog.Context
}

type ZWrapper added in v2.0.25

type ZWrapper interface {
	Error(args ...any)
	Errorf(msg string, args ...any)
	Warning(args ...any)
	Warningf(msg string, args ...any)
	Info(args ...any)
	Infof(msg string, args ...any)
	Debug(args ...any)
	Debugf(msg string, args ...any)
	Fatal(args ...any)
	Fatalf(msg string, args ...any)
	Panic(args ...any)
	Panicf(msg string, args ...any)
}

func NewZWrapper added in v2.0.25

func NewZWrapper(z ZLogger) ZWrapper

Jump to

Keyboard shortcuts

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