logger

package
v0.0.0-...-e436aa5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*log.Logger
	DebugMode bool
}

Logger builds on top of log.Logger with some helpful methods.

func (Logger) Debugf

func (l Logger) Debugf(format string, v ...interface{})

Debugf logs when debug mode is active, works like Printf.

func (Logger) Errorf

func (l Logger) Errorf(format string, v ...interface{})

Errorf logs a message with an "WARNING:" prefix, works like Printf.

func (Logger) Infof

func (l Logger) Infof(format string, v ...interface{})

Infof logs a message with an "INFO:" prefix, works like Printf.

func (Logger) Warningf

func (l Logger) Warningf(format string, v ...interface{})

Warningf logs a message with an "WARNING:" prefix, works like Printf.

Jump to

Keyboard shortcuts

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