Skip to content

Commit

Permalink
#### Version 1.0.1
Browse files Browse the repository at this point in the history
* 新增logger.SetEnabledConsole,当设置SetDevelopmentMode时自动开启
* SetEnabledConsole:自动向console输出dotweb基础日志,便于开发人员调试阶段实时查看
* 完善日志、注释
* 2017-08-31 08:30
  • Loading branch information
devfeel committed Aug 31, 2017
1 parent baa40db commit 935a9d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions logger/xlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (l *xLog) Log(log string, logTarget string, logLevel string) {
}
}

//set log path
//SetLogPath set log path
func (l *xLog) SetLogPath(rootPath string) {
//设置日志根目录
l.logRootPath = rootPath
Expand All @@ -81,12 +81,12 @@ func (l *xLog) SetLogPath(rootPath string) {
}
}

//set enabled log
//SetEnabledLog set enabled log
func (l *xLog) SetEnabledLog(enabledLog bool) {
l.enabledLog = enabledLog
}

//set enabled log
//SetEnabledConsole set enabled Console output
func (l *xLog) SetEnabledConsole(enabled bool) {
l.enabledConsole = enabled
}
Expand Down

0 comments on commit 935a9d5

Please sign in to comment.