log

package
v0.0.85 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VerboseLogger = (*logrus.Logger)(nil)
View Source
var VerboseLoggerOutputs = (*LoggerWriters)(nil)

Functions

func ConnectFileToVerboseLogOutput

func ConnectFileToVerboseLogOutput(filePath string) (close func(), err error)

func Error

func Error(args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Fatalln

func Fatalln(args ...interface{})

func GetLevel added in v0.0.32

func GetLevel() logrus.Level

func Info

func Info(args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func NewSpinner added in v0.0.22

func NewSpinner(message string, a ...any) (start func(), stop func(), s *spinner.Spinner)

func Printf

func Printf(format string, args ...interface{})

func Println

func Println(args ...interface{})

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

Types

type LoggerWriters

type LoggerWriters struct {
	// contains filtered or unexported fields
}

func NewLoggerOutputs

func NewLoggerOutputs(logger *logrus.Logger) *LoggerWriters

func (*LoggerWriters) Add

func (lw *LoggerWriters) Add(w io.Writer)

func (*LoggerWriters) Remove

func (lw *LoggerWriters) Remove(w io.Writer)

func (*LoggerWriters) Set

func (lw *LoggerWriters) Set()

Jump to

Keyboard shortcuts

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