log

package
v0.67.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...any)

Debug logs a message at level Debug on the standard logger.

func Debugf

func Debugf(format string, args ...any)

Debugf logs a message at level Debug on the standard logger.

func Debugln

func Debugln(args ...any)

Debugln logs a message at level Debug on the standard logger.

func Error

func Error(args ...any)

Error logs a message at level Error on the standard logger.

func Errorf

func Errorf(format string, args ...any)

Errorf logs a message at level Error on the standard logger.

func Errorln

func Errorln(args ...any)

Errorln logs a message at level Error on the standard logger.

func Fatal

func Fatal(args ...any)

Fatal logs a message at level Fatal on the standard logger then the process will exit with status set to 1.

func Fatalf

func Fatalf(format string, args ...any)

Fatalf logs a message at level Fatal on the standard logger then the process will exit with status set to 1.

func Fatalln

func Fatalln(args ...any)

Fatalln logs a message at level Fatal on the standard logger then the process will exit with status set to 1.

func Info

func Info(args ...any)

Info logs a message at level Info on the standard logger.

func Infof

func Infof(format string, args ...any)

Infof logs a message at level Info on the standard logger.

func Infoln

func Infoln(args ...any)

Infoln logs a message at level Info on the standard logger.

func Logf

func Logf(level logrus.Level, format string, args ...interface{})

func Logger

func Logger() *logrus.Logger

Logger returns logger

func Panic

func Panic(args ...any)

Panic logs a message at level Panic on the standard logger.

func Panicf

func Panicf(format string, args ...any)

Panicf logs a message at level Panic on the standard logger.

func Panicln

func Panicln(args ...any)

Panicln logs a message at level Panic on the standard logger.

func Print

func Print(args ...any)

Print logs a message at level Info on the standard logger.

func Printf

func Printf(args ...any)

Printf logs a message at level Info on the standard logger.

func Println

func Println(args ...any)

Println logs a message at level Info on the standard logger.

func SetLogLevel

func SetLogLevel(level logrus.Level)

func SetLogger

func SetLogger(l *logrus.Logger)

Logger returns logger

func TFStderrWriter

func TFStderrWriter(writer io.Writer, formatter logrus.Formatter, prefix, tfpath string) io.Writer

func TFStdoutWriter

func TFStdoutWriter(writer io.Writer, formatter logrus.Formatter, prefix, tfpath string) io.Writer

func Trace

func Trace(args ...any)

Trace logs a message at level Trace on the standard logger.

func Tracef

func Tracef(format string, args ...any)

Tracef logs a message at level Trace on the standard logger.

func Warn

func Warn(args ...any)

Warn logs a message at level Warn on the standard logger.

func Warnf

func Warnf(format string, args ...any)

Warnf logs a message at level Warn on the standard logger.

func Warnln

func Warnln(args ...any)

Warnln logs a message at level Warn on the standard logger.

func WithError

func WithError(err error) *logrus.Entry

WithError adds an error to log entry, using the value defined in ErrorKey as key.

func WithField

func WithField(key string, value interface{}) *logrus.Entry

WithField allocates a new entry and adds a field to it.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳