Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEBUG = iota INFO WARN ERROR )
View Source
const ( DefaultFileMaxSize = 10485760 LogInfoChanSize = 1000 MaxWriteCacheNum = 1000 )
Variables ¶
View Source
var ( LeftBracket = []byte("[") RightBracket = []byte("]") Space = []byte(" ") Colon = []byte(":") FuncBracket = []byte("()") LineFeed = []byte("\n") )
View Source
var ( RED = []byte{27, 91, 51, 49, 109} GREEN = []byte{27, 91, 51, 50, 109} YELLOW = []byte{27, 91, 51, 51, 109} BLUE = []byte{27, 91, 51, 52, 109} MAGENTA = []byte{27, 91, 51, 53, 109} CYAN = []byte{27, 91, 51, 54, 109} WHITE = []byte{27, 91, 51, 55, 109} RESET = []byte{27, 91, 48, 109} )
Functions ¶
func CloseLogger ¶
func CloseLogger()
func InitLogger ¶
func InitLogger(appName, logLevel string)
Types ¶
Click to show internal directories.
Click to hide internal directories.