logger

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel        = logrus.InfoLevel
	DefaultTimestampFormat = time.RFC3339
)

Variables

View Source
var WebapiDebug = false

Functions

func Init

func Init(logLevel string)

func NewCallerHook

func NewCallerHook() logrus.Hook

Types

type CallerHook

type CallerHook struct {
	FileNameAndLine string
	Skip            int
}

func (*CallerHook) Fire

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

func (*CallerHook) Levels

func (hook *CallerHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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