printer

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CI

func CI(opt interface{}) error

CI - enable only log messages to CLI output

func IsInitialized added in v1.3.0

func IsInitialized() bool

IsInitialized returns true if printer is ready, false otherwise

func LogFile

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

LogFile - enables write to log file

func LogFormat

func LogFormat(logFormat string) 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{}) 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