clilogger

package
v2.0.0-...-c98e9ca Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLILogger

type CLILogger struct {
	Writer io.Writer
	// contains filtered or unexported fields
}

CLILogger is used by the cli

func New

func New(writer io.Writer) *CLILogger

New cli logger

func (*CLILogger) Fatal

func (c *CLILogger) Fatal(message string, args ...interface{})

Fatal prints the given message then aborts

func (*CLILogger) Mute

func (c *CLILogger) Mute(value bool)

Mute sets whether the logger should be muted

func (*CLILogger) Print

func (c *CLILogger) Print(message string, args ...interface{})

Print works like Printf

func (*CLILogger) Println

func (c *CLILogger) Println(message string, args ...interface{})

Println works like Printf but with a line ending

Jump to

Keyboard shortcuts

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