Documentation ¶
Index ¶
- Variables
- func Debug(format string, a ...interface{})
- func Error(format string, a ...interface{})
- func ErrorOccured() bool
- func Fatal(format string, a ...interface{})
- func GetColorString(color Color) string
- func Log(format string, a ...interface{})
- func Success(format string, a ...interface{})
- func Warning(format string, a ...interface{})
- type Color
Constants ¶
This section is empty.
Variables ¶
var IndentationLevel = 0
IndentationLevel controls the amount of indentation of log messages.
var NoColor bool
NoColor and noColorEnv control whether stdout and stderr are colorized or not Two variables are used to prevent races when they are set. NoColor is set by the dbt command invokation after cobra parses the cli args. noColorEnv is set by the init function of this package. As long as one of the flags is true, the output is not colorized.
var Verbose bool
Verbose controls whether debug messages are being printed.
Functions ¶
func Debug ¶
func Debug(format string, a ...interface{})
Debug prints an indented and formatted debug message to os.Stdout if verbose output is selected.
func Error ¶
func Error(format string, a ...interface{})
Error prints an indented and formatted error message to os.Stdout.
func Fatal ¶
func Fatal(format string, a ...interface{})
Fatal prints an indented and formatted error message to os.Stdout and terminates the program.
func GetColorString ¶
func Log ¶
func Log(format string, a ...interface{})
Log prints an indented and formatted message to os.Stdout.