logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerWithWriter

func NewLoggerWithWriter(w io.Writer, env LogEnv, lv zapcore.LevelEnabler, isStackTrace bool) *zap.Logger

NewLoggerWithWriter returns *zap.Logger

func NewZapLogger

func NewZapLogger(conf *config.Logger) *zap.Logger

NewZapLogger returns *zap.Logger

Types

type LogEnv

type LogEnv string

LogEnv dev/prod/custom

const (
	LogDev    LogEnv = "dev"
	LogProd   LogEnv = "prod"
	LogCustom LogEnv = "custom"
)

log_type

func (LogEnv) String

func (e LogEnv) String() string

String converter

Jump to

Keyboard shortcuts

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