log

package module
v0.0.0-...-929b100 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 19 modules, 49 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

log Go Walker

Package log is a dead simple, levelable, colorful logging library.

License

This project is under Apache v2 License. See the LICENSE file for the full license text.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Prefix     = "[Log]"
	TimeFormat = "06-01-02 15:04:05"

	NonColor           bool
	ShowDepth          bool
	DefaultCallerDepth = 2
)

Functions

func Debug

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

func DebugD

func DebugD(depth int, format string, args ...interface{})

func Error

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

func ErrorD

func ErrorD(depth int, format string, args ...interface{})

func Fatal

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

func FatalD

func FatalD(depth int, format string, args ...interface{})

func Info

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

func InfoD

func InfoD(depth int, format string, args ...interface{})

func Print

func Print(level Level, depth int, format string, args ...interface{})

func Warn

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

func WarnD

func WarnD(depth int, format string, args ...interface{})

Types

type Level

type Level int
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
⌂ 换网址