assetlog

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: BlueOak-1.0.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRotator

func NewRotator(logDir, logFileName string) (*rotator.Rotator, error)

NewRotator initializes a rotating file logger.

Types

type BTCLogger

type BTCLogger struct {
	slog.Logger
}

func (*BTCLogger) Level

func (btcLog *BTCLogger) Level() btclog.Level

func (*BTCLogger) SetLevel

func (btcLog *BTCLogger) SetLevel(btcLvl btclog.Level)

type LoggerPlus

type LoggerPlus struct {
	slog.Logger
	// contains filtered or unexported fields
}

LoggerPlus logs everything to a main logger, and everything with level >= warn to both file and a specified dex.Logger.

func NewLoggerPlus

func NewLoggerPlus(mainLogger, errorLogger slog.Logger) *LoggerPlus

func (*LoggerPlus) Critical

func (f *LoggerPlus) Critical(v ...interface{})

func (*LoggerPlus) Criticalf

func (f *LoggerPlus) Criticalf(format string, params ...interface{})

func (*LoggerPlus) Error

func (f *LoggerPlus) Error(v ...interface{})

func (*LoggerPlus) Errorf

func (f *LoggerPlus) Errorf(format string, params ...interface{})

func (*LoggerPlus) Warn

func (f *LoggerPlus) Warn(v ...interface{})

func (*LoggerPlus) Warnf

func (f *LoggerPlus) Warnf(format string, params ...interface{})

type ParentLogger

type ParentLogger interface {
	SubLogger(name string) slog.Logger
}

Jump to

Keyboard shortcuts

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