debuglogger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(app *cli.App, l *Logger)

Types

type Logger

type Logger struct {
	Writer  io.Writer
	IsDebug bool
	NoColor bool
}

func Get

func Get(cCtx *cli.Context) *Logger

func New

func New(w io.Writer, isDebug bool, noColor bool) *Logger

func (*Logger) Printf

func (l *Logger) Printf(format string, a ...any)

func (*Logger) PrintfNoPrefix

func (l *Logger) PrintfNoPrefix(format string, a ...any)

Jump to

Keyboard shortcuts

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