Documentation ¶
Index ¶
- Constants
- Variables
- func Fatal(params ...interface{})
- func Fatalf(format string, params ...interface{})
- func Fatalln(params ...interface{})
- func Panic(params ...interface{})
- func Panicf(format string, params ...interface{})
- func Panicln(params ...interface{})
- func PrettyPrint(params ...interface{})
- func Print(params ...interface{})
- func Printf(paramsOriginal ...interface{})
- func Println(params ...interface{})
- func SetDefaultLevel(lvl LogLevel)
- func SetLogLevel(lvl LogLevel)
- func SetLogLevelByString(lvlStr string)
- func ShowColorsInLogs(ok bool)
- type LogLevel
Constants ¶
View Source
const ANSI_BLACK = "\u001B[30m"
View Source
const ANSI_BLACK_BACKGROUND = "\u001B[40m"
View Source
const ANSI_BLUE = "\u001B[34m"
View Source
const ANSI_BLUE_BACKGROUND = "\u001B[44m"
View Source
const ANSI_CYAN = "\u001B[36m"
View Source
const ANSI_CYAN_BACKGROUND = "\u001B[46m"
View Source
const ANSI_GREEN = "\u001B[32m"
View Source
const ANSI_GREEN_BACKGROUND = "\u001B[42m"
View Source
const ANSI_PURPLE = "\u001B[35m"
View Source
const ANSI_PURPLE_BACKGROUND = "\u001B[45m"
View Source
const ANSI_RED = "\u001B[31m"
View Source
const ANSI_RED_BACKGROUND = "\u001B[41m"
View Source
const ANSI_RESET = "\u001B[0m"
View Source
const ANSI_WHITE = "\u001B[37m"
View Source
const ANSI_WHITE_BACKGROUND = "\u001B[47m"
View Source
const ANSI_YELLOW = "\u001B[33m"
View Source
const ANSI_YELLOW_BACKGROUND = "\u001B[43m"
Variables ¶
View Source
var COLORS_IN_LOGS = false
View Source
var DEFAULT_LEVEL = INFO
View Source
var LOG_LEVEL = NONE
Functions ¶
func PrettyPrint ¶
func PrettyPrint(params ...interface{})
func SetDefaultLevel ¶
func SetDefaultLevel(lvl LogLevel)
func SetLogLevel ¶
func SetLogLevel(lvl LogLevel)
func SetLogLevelByString ¶
func SetLogLevelByString(lvlStr string)
func ShowColorsInLogs ¶
func ShowColorsInLogs(ok bool)
Types ¶
Click to show internal directories.
Click to hide internal directories.