logger

package
v0.0.0-...-3d067a8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = func() Logger {
	once.Do(func() {
		l := logrus.New()
		l.Formatter = &logrus.TextFormatter{DisableColors: true}
		l.SetLevel(logrus.InfoLevel)
		log = Logger{Logger: l}
	})
	return log
}()

Functions

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Info

func Info(args ...interface{})

func SetFile

func SetFile(path string) error

func Warning

func Warning(args ...interface{})

Types

type Logger

type Logger struct {
	*logrus.Logger
}

Jump to

Keyboard shortcuts

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