loghelp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, fields ...zap.Field)

Debug logging debug Lvl both console and file

func Error

func Error(message string, fields ...zap.Field)

Error logging error Lvl both console and file

func Fatal

func Fatal(message string, fields ...zap.Field)

Fatal logging fatal Lvl both console and file

func Info

func Info(message string, fields ...zap.Field)

Info logging info Lvl both console and file

func Init

func Init()

Init intialize hoon log

func Panic

func Panic(message string, fields ...zap.Field)

Panic logging panic Lvl both console and file

func SetLogFilePath

func SetLogFilePath(path string)

SetLogFilePath set path to save log

func Warn

func Warn(message string, fields ...zap.Field)

Warn logging warn Lvl both console and file

Types

type EscapeSeqJSONEncoder

type EscapeSeqJSONEncoder struct {
	zapcore.Encoder
}

func (*EscapeSeqJSONEncoder) Clone

func (enc *EscapeSeqJSONEncoder) Clone() zapcore.Encoder

func (*EscapeSeqJSONEncoder) EncodeEntry

func (enc *EscapeSeqJSONEncoder) EncodeEntry(entry zapcore.Entry, fields []zapcore.Field) (*buffer.Buffer, error)

Jump to

Keyboard shortcuts

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