xlogger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 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 interface {
	Debug(msg string, kvs ...interface{})
	Info(msg string, kvs ...interface{})
	Warn(msg string, kvs ...interface{})
	Error(msg string, kvs ...interface{})
	Fatal(msg string, kvs ...interface{})
}

func NewZapLogger

func NewZapLogger(envv env.Env, kv ...string) (Logger, error)

type ZapLogger

type ZapLogger struct {
	// contains filtered or unexported fields
}

func (*ZapLogger) Debug

func (z *ZapLogger) Debug(msg string, kvs ...interface{})

func (*ZapLogger) Error

func (z *ZapLogger) Error(msg string, kvs ...interface{})

func (*ZapLogger) Fatal

func (z *ZapLogger) Fatal(msg string, kvs ...interface{})

func (*ZapLogger) Info

func (z *ZapLogger) Info(msg string, kvs ...interface{})

func (*ZapLogger) Warn

func (z *ZapLogger) Warn(msg string, kvs ...interface{})

Jump to

Keyboard shortcuts

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