printer

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CIFlag             = "ci"
	LogFileFlag        = "log-file"
	LogFileShorthand   = "l"
	LogFormatFlag      = "log-format"
	LogFormatShorthand = "f"
	LogLevelFlag       = "log-level"
	LogPathFlag        = "log-path"
	NoColorFlag        = "no-color"
	SilentFlag         = "silent"
	SilentShorthand    = "s"
	VerboseFlag        = "verbose"
	VerboseShorthand   = "v"
	LogFormatJSON      = "json"
	LogFormatPretty    = "pretty"
)

Variables

This section is empty.

Functions

func CI

func CI(opt interface{}, changed bool) error

CI - enable only log messages to CLI output

func LogFile

func LogFile(opt interface{}, changed bool) error

LogFile - enables write to log file

func LogFormat

func LogFormat(opt interface{}, changed bool) error

LogFormat - configures the logs format (JSON,pretty).

func LogLevel

func LogLevel(opt interface{}, changed bool) error

LogLevel - sets log level

func LogPath

func LogPath(opt interface{}, changed bool) error

LogPath - sets the log files location

func NoColor

func NoColor(opt interface{}, changed bool) error

NoColor - disables ASCII color codes

func SetupPrinter

func SetupPrinter(flags *pflag.FlagSet) error

SetupPrinter - configures stdout and log options with given FlagSet

func Silent

func Silent(opt interface{}, changed bool) error

Silent - disables stdout output

func Verbose

func Verbose(opt interface{}, changed bool) error

Verbose - redirects log entries to stdout

Types

This section is empty.

Jump to

Keyboard shortcuts

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