Documentation ¶
Overview ¶
Package log contains an interface to logging system
*
## ## ######## ## ## ####### ######## ######## ######## ######## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###### ## ## ## ## ## ######## ## ## ###### ######## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ######## ### ### ####### ## ## ######## ######## ## ##
"NewOrder" - Reverse Proxy SE "CHANGE THE WORLD..." Copyright 2022 (C) NEMESIS. neworder@tutamail.com. All rights reserved.
*
*
## ## ######## ## ## ####### ######## ######## ######## ######## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###### ## ## ## ## ## ######## ## ## ###### ######## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ######## ### ### ####### ## ## ######## ######## ## ##
"NewOrder" - Reverse Proxy SE "CHANGE THE WORLD..." Copyright 2022 (C) NEMESIS. neworder@tutamail.com. All rights reserved.
*
Index ¶
- Variables
- func AddOutput(path string, level ll.Verbosity, config FormatConfig, noEffects bool) (err error)
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Fatal(format string, args ...interface{})
- func Important(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Init(opt core.Options, isLogToFile bool, logFilePath string)
- func Raw(format string, args ...interface{})
- func Warning(format string, args ...interface{})
- type FormatConfig
Constants ¶
This section is empty.
Variables ¶
var ( // Effects is a map of the tokens that can be used in Format to // change the properties of the text. Effects = map[string]string{ "{bold}": tui.BOLD, "{dim}": tui.DIM, "{red}": tui.RED, "{green}": tui.GREEN, "{blue}": tui.BLUE, "{yellow}": tui.YELLOW, "{f:black}": tui.FOREBLACK, "{f:white}": tui.FOREWHITE, "{b:darkgray}": tui.BACKDARKGRAY, "{b:red}": tui.BACKRED, "{b:green}": tui.BACKGREEN, "{b:yellow}": tui.BACKYELLOW, "{b:lightblue}": tui.BACKLIGHTBLUE, "{reset}": tui.RESET, } FormatConfigBasic = FormatConfig{ DateFormat: dateFormat, TimeFormat: timeFormat, DateTimeFormat: dateTimeFormat, Format: format, } )
Functions ¶
func Fatal ¶
func Fatal(format string, args ...interface{})
Fatal emits a fatal error message and calls the ll.OnFatal callback.
func Important ¶
func Important(format string, args ...interface{})
Important emits an important informative message.