logger

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = &Logger{
	DebugMode: false,
	Output:    os.Stdout,
}

Functions

func Debugf

func Debugf(format string, args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Logf

func Logf(format string, args ...interface{})

func SetLogger

func SetLogger(debugMode bool)

func Warnf

func Warnf(format string, args ...interface{})

Types

type Logger

type Logger struct {
	DebugMode bool
	Output    io.Writer
}

Jump to

Keyboard shortcuts

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