logger

package
v0.0.0-...-4c8f420 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLogger

type AppLogger struct {
	logging.Logger
}

AppLogger defines extended logger with generic no-level logging option

func New

func New(out io.Writer, module string, lvl logging.Level) *AppLogger

New provides a new instance of the Logger.

func (*AppLogger) ModuleLogger

func (l *AppLogger) ModuleLogger(module string) *AppLogger

ModuleLogger provides a new instance of the Logger for a module.

func (AppLogger) Printf

func (a AppLogger) Printf(format string, args ...interface{})

Printf implements default non-leveled output. We assume the information is low in importance if passed to this function so we relay it to Debug level.

Jump to

Keyboard shortcuts

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