logging

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPrefix      = ""
	DefaultCallerDepth = 2
	DefaultLevel       = DEBUG

	LoggerOut *log.Logger
	LoggerErr *log.Logger

	LogTrace = false
)

Functions

func Debug

func Debug(v ...interface{})

func Debugf

func Debugf(s string, v ...interface{})

func Error

func Error(v ...interface{})

func Errorf

func Errorf(s string, v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Fatalf

func Fatalf(s string, v ...interface{})

func Info

func Info(v ...interface{})

func InfoErrors

func InfoErrors(err error)

InfoErrors prints all errors

func Infof

func Infof(s string, v ...interface{})

func Trace

func Trace(v ...interface{})

Trace - only use this in case of emergency, and remove after use is done, highly avoid this

func Tracef

func Tracef(s string, v ...interface{})

Tracef - only use this in case of emergency, and remove after use is done, highly avoid this

func Warn

func Warn(v ...interface{})

func Warnf

func Warnf(s string, v ...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