Documentation ¶
Overview ¶
Package logger provides functions that are logging related
Index ¶
- Constants
- func Error(format string, a ...interface{})
- func Output(format string, a ...interface{})
- func Print(message string)
- func PrintColor(message string, color string)
- func Println(message string)
- func PrintlnColor(message string, color string)
- func Warning(format string, a ...interface{})
- type Logger
Constants ¶
View Source
const ( YELLOW = "\x1b[33;1m" GREEN = "\x1b[32;1m" RED = "\x1b[31;1m" RESET = "\x1b[33;0m" )
Colors which can be used
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(format string, a ...interface{})
Error prints an error message to Stdout in red
func Output ¶
func Output(format string, a ...interface{})
Output prints an error message to Stdout in 'normal' color
func PrintColor ¶
PrintColor prints a message in a given ANSI-color
func PrintlnColor ¶
PrintlnColor prints a message in a given ANSI-color with a trailing newline
Types ¶
type Logger ¶
Logger struct
Click to show internal directories.
Click to hide internal directories.