logging

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	F *os.File

	DefaultPrefix      = ""
	DefaultCallerDepth = 2
)

Functions

func Debug

func Debug(v ...interface{})

Debug output logs at debug level

func Error

func Error(v ...interface{})

Error output logs at error level

func Fatal

func Fatal(v ...interface{})

Fatal output logs at fatal level

func Info

func Info(v ...interface{})

Info output logs at info level

func Logger

func Logger() *logrus.Logger

func Setup

func Setup()

func Warn

func Warn(v ...interface{})

Warn output logs at warn level

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