logging

package
Version: v0.0.0-...-7d215dd Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLevel      = logrus.InfoLevel
	DefaultFormat     = "text"
	DefaultTimeFormat = "2006/01/02 15:04:05.00000"
)

Variables

Functions

func Finalize

func Finalize()

func GetSeveritiesFilter4CurrentLogLevel

func GetSeveritiesFilter4CurrentLogLevel() (result []errs.Severity)

func Initialize

func Initialize(ctx context.Context, logFileName, level, format, traceFileName string, usr *user.User) errs.Error

func LogError

func LogError(args ...interface{})

func Msg

func Msg(args ...interface{}) *logrus.Entry

Types

type ContextFormatter

type ContextFormatter struct {
	BaseFormatter logrus.Formatter
}

func (*ContextFormatter) Format

func (f *ContextFormatter) Format(e *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL