Documentation ¶
Overview ¶
Package tlog implements logging utilities for boilr
Index ¶
Constants ¶
View Source
const ( // DebugMark character indicates debug message. DebugMark = "☹" // CheckMark character indicates success message. CheckMark = "✔" // InfoMark character indicates information message. InfoMark = "i" // WarnMark character indicates warning message. WarnMark = "!" // ErrorMark character indicates error message. ErrorMark = "✘" // QuestionMark character indicates prompt message. QuestionMark = "?" )
TODO default to ASCII if Unicode is not supported
View Source
const ( LevelDebug = 1 << 5 LevelFatal = 1 << 4 LevelWarn = 1 << 3 LevelError = 1 << 2 LevelInfo = 1 << 1 LevelSuccess = 1 << 0 )
Variables ¶
This section is empty.
Functions ¶
func Prompt ¶
func Prompt(msg string, defval interface{})
Prompt outputs the given message as a question along with a default value.
func SetLogLevel ¶
func SetLogLevel(LogLevelString string)
SetLogLevel sets the global logging level.
Types ¶
Click to show internal directories.
Click to hide internal directories.