logging

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(log1 *LogBackend)

func NewLogrus

func NewLogrus() *logrus.Logger

Types

type LogBackend

type LogBackend struct {
	L *logrus.Logger
	// contains filtered or unexported fields
}

func NewLogBackend

func NewLogBackend(logger *logrus.Logger, dbSaver *LogDbSaver, conf *config.AppConfig) (back *LogBackend)

func (*LogBackend) Log

func (b *LogBackend) Log(level logging.Level, calldepth int, rec *logging.Record) (err error)

type LogDbSaver added in v0.0.19

type LogDbSaver struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewLogDbSaver added in v0.0.19

func NewLogDbSaver(adaptors *adaptors.Adaptors,
	graceful *graceful_service.GracefulService) *LogDbSaver

func (*LogDbSaver) Save added in v0.0.19

func (l *LogDbSaver) Save(log m.Log)

func (*LogDbSaver) Shutdown added in v0.0.19

func (l *LogDbSaver) Shutdown()

func (*LogDbSaver) Start added in v0.0.19

func (l *LogDbSaver) Start()

Jump to

Keyboard shortcuts

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