output

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicErrorAdapter

func BasicErrorAdapter(command entities.Command, entity *entities.Error) error

func BasicLoggerAdapter

func BasicLoggerAdapter(command entities.Command, entity *entities.LogMessage) error

func CheckNil

func CheckNil(adapter adapters.AdapterMap)

func JsonAdapter

func JsonAdapter(command entities.Command, entity entities.Entity) error

func ParseInfo

func ParseInfo(c entities.Command, a entities.AnalysisName, m string, args ...interface{}) (entities.Command, *entities.LogMessage)

func ParseWarning

func ParseWarning(c entities.Command, a entities.AnalysisName, m string, args ...interface{}) (entities.Command, *entities.LogMessage)

func PrettyConsoleAdapter

func PrettyConsoleAdapter(command entities.Command, entity entities.Entity) error

func SetBasicLogger

func SetBasicLogger(out io.Writer, level entities.LogLevel, logTime bool)

SetLogger sets the logging level preference

func SetColorLogger

func SetColorLogger(out io.Writer, level entities.LogLevel, logTime bool)

Types

type BasicLogger

type BasicLogger struct {
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
}

Jump to

Keyboard shortcuts

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