clilogger

package
v2.0.0-...-21d7e90 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 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