atom

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitConsoleLog added in v0.9.16

func InitConsoleLog(mode, level string) error

InitConsoleLog set the console log level and mode for debugging.

func InitFileLog added in v0.9.16

func InitFileLog(mode, level, filename string) error

InitFileLog set the file log level and filename for debugging.

func InitMultiLog added in v0.10.3

func InitMultiLog(mode, level, filename string) error

InitMultiLog set the log mode, level, filename for debugging. The logger will print both to console and files.

func NewSugar added in v0.9.16

func NewSugar(name string) *zap.SugaredLogger

Types

type LogModeEncoder added in v0.10.0

type LogModeEncoder func() zapcore.Encoder

type SinkType added in v0.10.4

type SinkType int
const (
	SinkConsole SinkType = iota // default
	SinkFile
	SinkMulti
)

func GetSinkType added in v0.10.4

func GetSinkType(sink string) (SinkType, error)

Jump to

Keyboard shortcuts

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