Documentation ¶
Index ¶
- Constants
- func Debug(format string, v ...interface{})
- func Error(format string, v ...interface{})
- func Fatal(v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(format string, v ...interface{})
- func InfoWithFields(fields Fields, format string, v ...interface{})
- func Notice(format string, v ...interface{})
- func Printf(format string, v ...interface{})
- func Println(v ...interface{})
- func SetLevel(level LogLevel)
- func Timestamp() string
- func Warning(format string, v ...interface{})
- type ColorPrinter
- type Fields
- type LogLevel
Constants ¶
View Source
const ( GREEN = "\x1b[32m" BLUE = "\x1b[34m" YELLOW = "\x1b[33m" YELLOWB = "\x1b[1;33m" RED = "\x1b[31m" //REDB = "\x1b[1;31m" ORANGE = "\x1b[38;5;208m" RESET = "\x1b[0m" )
Variables ¶
This section is empty.
Functions ¶
func InfoWithFields ¶
Types ¶
type ColorPrinter ¶
type ColorPrinter func(v interface{}) string
var Blue ColorPrinter = noColorPrinter
var Green ColorPrinter = noColorPrinter
var Orange ColorPrinter = noColorPrinter
var Red ColorPrinter = noColorPrinter
var Yellow ColorPrinter = noColorPrinter
var YellowB ColorPrinter = noColorPrinter
Click to show internal directories.
Click to hide internal directories.