ver_halt_check_log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: LGPL-3.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StdoutHandler = log.StreamHandler(os.Stdout, log.LogfmtFormat())
	StderrHandler = log.StreamHandler(os.Stderr, log.LogfmtFormat())
)

Predefined handlers

Functions

func Crit

func Crit(msg string, ctx ...interface{})

Crit is a convenient alias for Root().Crit

func Debug

func Debug(msg string, ctx ...interface{})

Debug is a convenient alias for Root().Debug

func Error

func Error(msg string, ctx ...interface{})

Error is a convenient alias for Root().Error

func Info

func Info(msg string, ctx ...interface{})

Info is a convenient alias for Root().Info

func InitHaltLogger

func InitHaltLogger(logLevel log.Lvl, nodeName string, removeOld bool)

外边可能要文件输出,可能要控制台输出,可能两个都需要

func Root

func Root() log.Logger

Root returns the root logger

func Warn

func Warn(msg string, ctx ...interface{})

Warn is a convenient alias for Root().Warn

Types

This section is empty.

Jump to

Keyboard shortcuts

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