log

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: GPL-3.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(ctx *cli.Context)

func Debug

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

func Error

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

func Fatal

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

func Info

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

func Lazy

func Lazy(fn func() string, logLevel string)

func Panic

func Panic(msg string, args ...interface{})

func SetLevelInt

func SetLevelInt(level int)

func SetLevelString

func SetLevelString(level string)

func Trace

func Trace(msg string, args ...interface{})

Uses of the global logger will use the following static method.

func Warn

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

Types

type Logger

type Logger struct {
	*logrus.Logger
}
var Log Logger = Logger{logrus.New()}

func New

func New(out_path string) Logger

func (Logger) Debug

func (l Logger) Debug(msg string, args ...interface{})

func (Logger) Error

func (l Logger) Error(msg string, args ...interface{})

func (Logger) Fatal

func (l Logger) Fatal(msg string, args ...interface{})

func (Logger) Info

func (l Logger) Info(msg string, args ...interface{})

func (Logger) Panic

func (l Logger) Panic(msg string, args ...interface{})

func (Logger) Trace

func (l Logger) Trace(msg string, args ...interface{})

Individual logging instances will use the following method.

func (Logger) Warn

func (l Logger) Warn(msg string, args ...interface{})

Jump to

Keyboard shortcuts

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