logging

package
v0.0.0-...-6b36e67 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger

func DefaultLogger() *zap.SugaredLogger

func FromContext

func FromContext(ctx context.Context) *zap.SugaredLogger

func NewLogger

func NewLogger(conf *Config) *zap.SugaredLogger

func SetConfig

func SetConfig(c *Config)

func SetLevel

func SetLevel(l zapcore.Level)

func WithLogger

func WithLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context

Types

type Config

type Config struct {
	Level       zapcore.Level
	Development bool
	FilePath    string
}

Jump to

Keyboard shortcuts

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