zerolog

package
v1.11.26 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level string, traceMode, debugMode bool, opts ...Opt) log.Logger

New create a sugared zap logger

level can be: "disable", "panic", "fatal", "error", "warn", "info", "debug", "trace"

func NewWithConfig

func NewWithConfig(config *log.LoggerConfig, opts ...Opt) log.Logger

NewWithConfig create a sugared zap sugared logger

level can be: "disable", "panic", "fatal", "error", "warn", "info", "debug", "trace"

func NewWithConfigSimple

func NewWithConfigSimple(config *log.LoggerConfig) log.Logger

NewWithConfigSimple create a sugared zap sugared logger

Types

type Opt

type Opt func(logger zerolog.Logger)

Jump to

Keyboard shortcuts

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