atom

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 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

Jump to

Keyboard shortcuts

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