log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

Debug logs

func Debugf

func Debugf(format string, params ...interface{})

Debugf formats logs

func Error

func Error(v ...interface{})

Error logs

func Errorf

func Errorf(format string, params ...interface{})

Errorf formats logs

func Flush

func Flush()

Flush immediately processes all currently queued logs.

func Info

func Info(v ...interface{})

Info logs

func Infof

func Infof(format string, params ...interface{})

Infof formats logs

func LoadLogger

func LoadLogger(conf string) (seelog.LoggerInterface, error)

LoadLogger 通过配置文件初始化日志模块

func Replace

func Replace(logger seelog.LoggerInterface)

Replace logger

func Trace

func Trace(v ...interface{})

Trace logs 详细运行跟踪日志,可能影响程序性能,所以生产环境不配置输出,仅在开发测试环境使用

func Tracef

func Tracef(format string, params ...interface{})

Tracef logs 详细运行跟踪日志,可能影响程序性能,所以生产环境不配置输出,仅在开发测试环境使用

func Warn

func Warn(v ...interface{})

Warn logs

func Warnf

func Warnf(format string, params ...interface{})

Warnf formats logs

Types

This section is empty.

Jump to

Keyboard shortcuts

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