logging

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCallerDepth = 2
)

Functions

func Debug

func Debug(v ...interface{})

Debug debug级日志输出

func Error

func Error(v ...interface{})

Error error级日志输出

func Fatal

func Fatal(v ...interface{})

Fatal fatal级日志输出

func Info

func Info(v ...interface{})

Info info级日志输出

func New

func New(filepath string)

New 新建文件日志和标准日志

func NewLog

func NewLog()

NewLog 新建标准日志

func NewLogFile

func NewLogFile(filepath string)

NewLogFile 新建文件日志

func Warn

func Warn(v ...interface{})

Warn warn级日志输出

Types

type Level

type Level uint8

Level 存放日志级别

const (
	DEBUG Level = iota
	INFO
	WARNING
	ERROR
	FATAL
)

日志级别

Jump to

Keyboard shortcuts

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