logger

package
v0.0.0-...-bfb9f03 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: AGPL-3.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const INDENTATION_TOKEN = "    "
View Source
const INDENTATION_TOKEN_LENGTH = 4

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func LogError

func LogError(currentFunctionName, functionCalledName string, err error)

func LogFatalError

func LogFatalError(currentFunctionName, functionCalledName string, err error)

func LogLevel

func LogLevel() string

func Panic

func Panic(args ...interface{})

func Panicf

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

func SetLogLevel

func SetLogLevel(newLevel logrus.Level)

func TraceEnter

func TraceEnter(functionName string)

func TraceLeave

func TraceLeave(functionName string)

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type ContextHook

type ContextHook struct{}

func (ContextHook) Fire

func (hook ContextHook) Fire(entry *logrus.Entry) error

func (ContextHook) Levels

func (hook ContextHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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