log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogFile

func InitLogFile(logPath string) error

Types

type BtmHook

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

func (*BtmHook) Fire

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

func (*BtmHook) Levels

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

Levels returns configured logs levels.

type Logger

type Logger interface {
	// Log a message at the given level with context key/value pairs
	Trace(msg string, ctx ...interface{})
	Debug(msg string, ctx ...interface{})
	Info(msg string, ctx ...interface{})
	Warn(msg string, ctx ...interface{})
	Error(msg string, ctx ...interface{})
}

func NewLog

func NewLog(field ...interface{}) Logger

Jump to

Keyboard shortcuts

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