Documentation
¶
Index ¶
- Constants
- Variables
- func Configure(config Config) error
- func LevelLabel(level int) string
- func Log(currentLogLevel int, message string, options ...LogOptions)
- func LogInit(globalLogLevel ...int)
- func ParseLevel(s string) (int, error)
- func ReadLast(n int) ([]string, error)
- func SetGlobalLevel(level int) error
- type Config
- type LogOptions
Constants ¶
View Source
const CYAN = "\033[96m"
View Source
const DEBUG_LOG_LEVEL = 3
View Source
const END = "\033[0m"
View Source
const ERROR_LOG_LEVEL = 0
View Source
const GRAY = "\033[90m"
View Source
const GREEN = "\033[92m"
View Source
const INFO_LOG_LEVEL = 2
View Source
const MAGENTA = "\033[95m"
View Source
const RED = "\033[91m"
View Source
const RESULT_LOG_LEVEL = 4
View Source
const WARNING_LOG_LEVEL = 1
View Source
const YELLOW = "\033[93m"
Variables ¶
View Source
var GLOBAL_LOG_LEVEL = -1
Functions ¶
func LevelLabel ¶
func Log ¶
func Log(currentLogLevel int, message string, options ...LogOptions)
func ParseLevel ¶
func SetGlobalLevel ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.