logger

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWrapper

type LogWrapper struct {
	Log   zerolog.Logger
	Debug bool
}

LogWrapper is a wrapper around Go's log.Logger.

func (LogWrapper) Debugf

func (lw LogWrapper) Debugf(fmt string, v ...interface{})

func (LogWrapper) Errorf

func (lw LogWrapper) Errorf(fmt string, v ...interface{})

func (LogWrapper) Infof

func (lw LogWrapper) Infof(fmt string, v ...interface{})

func (LogWrapper) Printf

func (lw LogWrapper) Printf(fmt string, v ...interface{})

func (LogWrapper) Warnf

func (lw LogWrapper) Warnf(fmt string, v ...interface{})

type Logger

type Logger interface {
	Printf(fmt string, v ...interface{})
	Debugf(fmt string, v ...interface{})
	Infof(fmt string, v ...interface{})
	Warnf(fmt string, v ...interface{})
	Errorf(fmt string, v ...interface{})
}

Logger is a generic logging interface.

Jump to

Keyboard shortcuts

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