log

package
v0.0.0-...-ab943b8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

打印调试级别日志

func Dump

func Dump(format string, v ...interface{})

打印崩溃级别日志(格式化)

func Error

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

打印错误级别日志

func Fatal

func Fatal(v ...interface{})

兼容日志打印函数

func Info

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

打印信息级别日志

func Panic

func Panic(v ...interface{})

兼容日志崩溃函数

func Print

func Print(v ...interface{})

兼容日志打印函数

func Printf

func Printf(format string, v ...interface{})

兼容日志打印函数(格式化)

func Signal

func Signal(format string, v ...interface{})

打印信号级别日志

func Warn

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

打印警告级别日志

Types

type Level

type Level int
const (
	LSignal Level
	LError
	LWarn
	LInfo
	LDebug
	LDump
)

type Option

type Option struct {
	Level   Level
	Console bool
}

Jump to

Keyboard shortcuts

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