logger

package
v0.0.0-...-4d07d55 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(dataDir string, loggerCfg *shared.YamlLogCfg) error

func StartLogRecorder

func StartLogRecorder(v io.Writer) error

Types

type Logger

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

func (*Logger) Debug

func (l *Logger) Debug(msg string)

func (*Logger) Fatal

func (l *Logger) Fatal(err error)

Fail func: print info msg and log it

func (*Logger) Init

func (l *Logger) Init(packageName string) error

func (*Logger) Log

func (l *Logger) Log(msg string)

Log func: print info msg and log it

Jump to

Keyboard shortcuts

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