logger

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevel  = zerolog.DebugLevel
	LogOutput = ConsoleOutput
	LogBytes  = false
)

Variables

This section is empty.

Functions

func FmtBytes

func FmtBytes(b []byte) string

func FmtBytesB

func FmtBytesB(b []byte) string

func FmtBytesF

func FmtBytesF(b []byte) (key, val string)

func FmtHex

func FmtHex(msg string, b []byte) func() string

func FmtHexColor

func FmtHexColor(msg string, b []byte) func() string

func L

func L() *zerolog.Logger

func SetupGlobalLogger

func SetupGlobalLogger(level zerolog.Level, outputFormat OutputFormat)

Types

type OutputFormat

type OutputFormat string
const (
	ConsoleOutput OutputFormat = "console"
	Default       OutputFormat = "Stderr"
)

Jump to

Keyboard shortcuts

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