logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GREEN      = "\033[1;32m"
	RED        = "\033[1;31m"
	YELLOW     = "\033[1;33m"
	BLUE       = "\033[0;34m"
	BLUE_BOLD  = "\033[1;34m"
	WHITE      = "\033[0;0m"
	WHITE_BOLD = "\033[1;1m"
	RESET      = "\033[0m"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFactory

type LogFactory interface {
	// will accept a string to be highlignted
	Info(string, string)
	Warn(string)
	Print(string)
	Err(string)
	Normal(string)
}

type Logger

type Logger struct {
	Verbose bool
}

func (*Logger) Err

func (logger *Logger) Err(message string)

func (*Logger) Info

func (logger *Logger) Info(message, resource string)

func (*Logger) Normal

func (logger *Logger) Normal(message string)

func (*Logger) Note

func (logger *Logger) Note(message string)

func (*Logger) Print

func (logger *Logger) Print(message string)

func (*Logger) Warn

func (logger *Logger) Warn(message string)

Jump to

Keyboard shortcuts

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