logger

package
v0.0.0-...-ba2213e Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...interface{})

Debug 打印debug级别日志

func Error

func Error(format string, args ...interface{})

Error 打印error级别日志

func Fatal

func Fatal(format string, args ...interface{})

Fatal 打印critial级别日志

func Info

func Info(format string, args ...interface{})

Info 打印info级别日志

func SetConfig

func SetConfig(conf Config)

SetConfig 配置

func SetLog

func SetLog(log *logs.BeeLogger)

SetLog 日志函数

func Trace

func Trace(format string, args ...interface{})

Trace 打印trace级别日志

func Warn

func Warn(format string, args ...interface{})

Warn 打印warn级别日志

Types

type Config

type Config struct {
	Engine              LogEngine `json:"engine"`
	Path                string    `json:"path"`
	CacheSize           int64     `json:"cache_size"`
	EnableFuncCallDepth bool      `json:"enable_func_call_depth"`
	FuncCallDepth       int       `json:"func_call_depth"`
}

Config 日志配置

type LogEngine

type LogEngine struct {
	Adapter string                 `json:"adapter"`
	Config  map[string]interface{} `json:"config"`
}

LogEngine 日志模式配置

Jump to

Keyboard shortcuts

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