Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrVerbosityConflict = errors.New(
"verbose and verbosity can not both be set",
)
View Source
var Logger = logrus.New()
Logger is the custom global logger object.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(loglevel Verbosity)
SetLogLevel sets the log-level for the logger basing on the Verbosity provided. The log level string must be correct, otherwise function will panic.
func VerbosityToDebug ¶
Types ¶
type Verbosity ¶
type Verbosity int
const ( UnknownLevel Verbosity = iota // Unknown verbosity, no logs in Ansible. TimestampLevel // Timestamp logs in Ansible, Ansible verbosity set to 1 ErrorLevel // Ansible verbosity set to 2 WarningLevel // Ansible verbosity set to 3 InfoLevel // Ansible verbosity set to 4 DebugLevel // Ansible verbosity set to 5, Packer debug flag on TraceLevel // Ansible verbosity set to 6 )
func IntToVerbosity ¶
Click to show internal directories.
Click to hide internal directories.