logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Logger      *zap.Logger
	LoggerSugar *zap.SugaredLogger
}

func NewCustomLogger

func NewCustomLogger(config *configuration.Config) *Logger

func NewLogger

func NewLogger() *Logger

func NewProductionLogger

func NewProductionLogger() *Logger

func (*Logger) Debugf

func (m *Logger) Debugf(template string, args ...interface{})

func (*Logger) Errorf

func (m *Logger) Errorf(template string, args ...interface{})

func (*Logger) Fatalf

func (m *Logger) Fatalf(template string, args ...interface{})

func (*Logger) Infof

func (m *Logger) Infof(template string, args ...interface{})

func (*Logger) SetupJsonLogger

func (m *Logger) SetupJsonLogger(d bool, f *os.File) *zap.SugaredLogger

Jump to

Keyboard shortcuts

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