Versions in this module Expand all Collapse all v1 v1.0.0 Apr 7, 2019 Changes in this version + const ALERT + const ALERTALERT + const ALERTCRITICAL + const ALERTWARNING + const ALL + const BLANK + const COLON + const COLOR_BLUE + const COLOR_GREEN + const COLOR_INTENSITY + const COLOR_MAGENTA + const COLOR_RED + const COLOR_TPL + const COLOR_YELLOW + const DASH + const DEBUG + const DEFAULTFILEMAXSIZE + const DEFAULTFILENAME + const DEFAULTFILEPATH + const DEFAULTFILESUFFIX + const DIAGONAL + const DOT + const ERROR + const FATAL + const INFO + const NEWLINE + const OFF + const TYPEALERT + const TYPEDEBUG + const TYPEERROR + const TYPEFATAL + const TYPEINFO + const TYPEWARN + const UNDERSCODE + const WARN + var ServerIp string + var TimeLocation *time.Location + var YRDLogger LoggerInterface + func GetCaller(calldepth int) (str string) + func GetLogTextPrefix(calldepth int, format string) string + func GetNowTime(format string) (str string) + func GetNowUnixTimeOBJ() time.Time + func Itoa(i int, wid int) string + type AlertApiConfig struct + AppId string + ContentType string + Format string + IsAlert bool + URL string + type ConfigOption func(*logger) + func WithAlertOPT(appId, URL, ContentType string) ConfigOption + func WithCommonOPT(cDep int, dateFormat string) ConfigOption + func WithConsoleOPT() ConfigOption + func WithFileOPT(filepath, filename, filesuffix string, fileMaxSize int64, fileMaxNSize int) ConfigOption + func WithcallDepOPT(cDep int) ConfigOption + type LoggerInterface interface + AddTextPrefix func(...interface{}) + AlertWithLevel func(alertLevel string, v ...interface{}) + Debug func(v ...interface{}) + Error func(v ...interface{}) + Fatal func(v ...interface{}) + Info func(v ...interface{}) + SetConfig func(uint8, string, ...ConfigOption) + SetTextPrefix func(...interface{}) + Warn func(v ...interface{}) + func GetLogger() LoggerInterface