feat: statistics: finish dev

This commit is contained in:
fallen-angle
2022-01-23 18:28:01 +08:00
parent 582807ae10
commit d844711191
29 changed files with 1670 additions and 51 deletions

View File

@@ -40,13 +40,19 @@ func UtilLogWarn(utilName string, args ...interface{}) {
}
func logInfo(msg string, args ...interface{}) {
global.Logger.Infow(msg, args...)
if global.ServerSettings.Env != global.ENV_NOLOG {
global.Logger.Infow(msg, args...)
}
}
func logError(msg string, args ...interface{}) {
global.Logger.Errorw(msg, args...)
}
if global.ServerSettings.Env != global.ENV_NOLOG {
global.Logger.Errorw(msg, args...)
func logWarn(msg string, args ...interface{}) {
global.Logger.Warnw(msg, args...)
}
}
func logWarn(msg string, args ...interface{}) {
if global.ServerSettings.Env != global.ENV_NOLOG {
global.Logger.Warnw(msg, args...)
}
}