Documentation ¶
Index ¶
- Constants
- Variables
- func Always(format string, a ...interface{})
- func Ask(format string, a ...interface{})
- func Critical(format string, a ...interface{})
- func Debug(format string, a ...interface{})
- func Info(format string, a ...interface{})
- func Log(format string, a ...interface{})
- func Success(format string, a ...interface{})
- func Table(headers []string, data [][]string)
- func Warning(format string, a ...interface{})
Constants ¶
const ( // AlwaysLabel displays an airplane on "always" logs. AlwaysLabel = "✈" // CriticalLabel displays an X on "critical" logs. CriticalLabel = "✖" // DebugLabel displays a play button on "debug" logs. DebugLabel = "▶" // InfoLabel displays an i icon on "info" logs. InfoLabel = "ℹ" // SuccessLabel displays a check mark on "success" logs. SuccessLabel = "✔" // WarningLabel displays an ! on "warning" logs. WarningLabel = "!" // AskLabel displays a ? on "ask" logs. AskLabel = "?" )
Variables ¶
var ( // Level defines the default log level. Level = 3 // Color toggles output colorization. Color = true // Timestamps toggles timestamps on output logs. Timestamps = false )
Functions ¶
func Always ¶
func Always(format string, a ...interface{})
Always will "always" print a formatted generic statement to standard output.
func Ask ¶
func Ask(format string, a ...interface{})
Ask will always print a formatted generic statement to standard output formatted to be a question.
func Critical ¶
func Critical(format string, a ...interface{})
Critical will print a formatted generic statement to standard output if the global level is set to 1 or higher. The print statement will have a color of red if color is enabled.
func Debug ¶
func Debug(format string, a ...interface{})
Debug will print a formatted generic statement to standard output if the global level is set to 4 or higher.
func Info ¶
func Info(format string, a ...interface{})
Info will print a formatted generic statement to standard output if the global level is set to 3 or higher. The print statement will have a color of cyan if color is enabled.
func Log ¶
func Log(format string, a ...interface{})
Log will print a formatted generic statement to standard output.
func Success ¶
func Success(format string, a ...interface{})
Success will print a formatted generic statement to standard output if the global level is set to 3 or higher. The print statement will have a color of cyan if color is enabled.
Types ¶
This section is empty.