logger

package module
v0.0.0-...-6ca9b55 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustNewLogger

func MustNewLogger(cfg *Config) *zap.Logger

func NewLogger

func NewLogger(cfg *Config) (*zap.Logger, error)

Types

type Config

type Config struct {
	Level      string `json:"level"`
	Encoding   string `json:"encoding"`
	Caller     string `json:"caller"`
	Stacktrace bool   `json:"stacktrace"`
}

Jump to

Keyboard shortcuts

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