Documentation ¶
Index ¶
- func NewRotator(logDir, logFileName string) (*rotator.Rotator, error)
- type BTCLogger
- type LoggerPlus
- func (f *LoggerPlus) Critical(v ...interface{})
- func (f *LoggerPlus) Criticalf(format string, params ...interface{})
- func (f *LoggerPlus) Error(v ...interface{})
- func (f *LoggerPlus) Errorf(format string, params ...interface{})
- func (f *LoggerPlus) Warn(v ...interface{})
- func (f *LoggerPlus) Warnf(format string, params ...interface{})
- type ParentLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoggerPlus ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.