zapLogger

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(context logger.Context) logger.Logger

func WithContext

func WithContext(contexts ...logger.Context) logger.Logger

Types

type Config

type Config struct {
	Development bool `json:"development"`
	LogFile     string
}

type ZapLogger

type ZapLogger struct {
	*zap.Logger
	logger.Context
}

func New

func New(config Config) *ZapLogger

func (*ZapLogger) DPanic

func (l *ZapLogger) DPanic(params ...interface{})

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(params ...interface{})

func (*ZapLogger) Error

func (l *ZapLogger) Error(params ...interface{})

func (*ZapLogger) Fatal

func (l *ZapLogger) Fatal(params ...interface{})

func (*ZapLogger) Info

func (l *ZapLogger) Info(params ...interface{})

func (*ZapLogger) Panic

func (l *ZapLogger) Panic(params ...interface{})

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(params ...interface{})

func (*ZapLogger) WithContext

func (l *ZapLogger) WithContext(context logger.Context) logger.Logger

Jump to

Keyboard shortcuts

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