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: 50

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