logger

package
v0.0.0-...-342267f Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

Log provices a simple leveled logger

func NewLogger

func NewLogger(quiet, debug bool, stdOut, errOut io.Writer) *Log

NewLogger returns a new logger (duh) with the given levels and output writers

func (*Log) Debug

func (l *Log) Debug(s ...interface{})

Debug logs debug-level logs if debug is true

func (*Log) Debugf

func (l *Log) Debugf(f string, s ...interface{})

Debugf uses fmt.Fprint fprmatting

func (*Log) Error

func (l *Log) Error(s ...interface{})

Error logs at the error level

func (*Log) Errorf

func (l *Log) Errorf(f string, s ...interface{})

Errorf uses fmt.Fprint formatting

func (*Log) Log

func (l *Log) Log(s ...interface{})

Log only logs if quiet is false

func (*Log) Logf

func (l *Log) Logf(f string, s ...interface{})

Logf uses fmt.Fprint fprmatting

Jump to

Keyboard shortcuts

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