log

package
v0.0.0-...-d0923ad Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
}

Instance of the Logger interface

func (*DefaultLogger) LogFatalf

func (d *DefaultLogger) LogFatalf(format string, v ...interface{})

Log when something goes wrong

func (*DefaultLogger) LogInfo

func (d *DefaultLogger) LogInfo(format string, v ...interface{})

Log basic things. Only used when `-verbose` option used

func (*DefaultLogger) LogStep

func (d *DefaultLogger) LogStep(format string, v ...interface{})

Log a single step

func (*DefaultLogger) LogSuccess

func (d *DefaultLogger) LogSuccess(format string, v ...interface{})

Log when something succeeds

type Logger

type Logger interface {
	LogFatalf(string, ...interface{})
	LogSuccess(string, ...interface{})
	LogStep(string, ...interface{})
	LogInfo(string, ...interface{})
}

Custom Logger interface Logs with colors! Usage same as standard library logger

Jump to

Keyboard shortcuts

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