Documentation ¶
Index ¶
- Constants
- 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 SetLevelConfig(cfg *Config)
- func SetLogLevel(lvl LogLevel)
- func SetLogLevelByString(lvlStr string)
- func ShowCaller(show bool)
- func ShowColors(show bool)
- func ShowColorsInLogs(show bool)
- func ShowTimestamp(show bool)
- func SprettyPrint(params ...interface{}) string
- func Sprint(params ...interface{}) string
- func Sprintf(paramsOriginal ...interface{}) string
- func Sprintln(params ...interface{}) string
- type Config
- type LevelConfig
- 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 ¶
This section is empty.
Functions ¶
func PrettyPrint ¶
func PrettyPrint(params ...interface{})
func SetDefaultLevel ¶
func SetDefaultLevel(lvl LogLevel)
func SetLevelConfig ¶ added in v0.10.0
func SetLevelConfig(cfg *Config)
func SetLogLevel ¶
func SetLogLevel(lvl LogLevel)
func SetLogLevelByString ¶
func SetLogLevelByString(lvlStr string)
func ShowCaller ¶ added in v0.9.6
func ShowCaller(show bool)
func ShowColors ¶ added in v0.10.0
func ShowColors(show bool)
func ShowColorsInLogs ¶
func ShowColorsInLogs(show bool)
func ShowTimestamp ¶ added in v0.10.0
func ShowTimestamp(show bool)
func SprettyPrint ¶ added in v0.10.0
func SprettyPrint(params ...interface{}) string
Types ¶
type Config ¶ added in v0.10.0
type Config struct { Verbose LevelConfig Debug LevelConfig Warn LevelConfig Info LevelConfig }
func DefaultLevelConfig ¶ added in v0.10.0
func DefaultLevelConfig() *Config
type LevelConfig ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.