Signed-off-by: 商讯在线 <swhbox@foxmail.com>
This commit is contained in:
商讯在线 2014-04-21 23:07:37 +08:00
parent 007ae2f188
commit a25f371cbf
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,7 @@ type Engine struct {
ShowErr bool ShowErr bool
ShowDebug bool ShowDebug bool
ShowWarn bool ShowWarn bool
ShowInfo bool
//Pool IConnectPool //Pool IConnectPool
//Filters []core.Filter //Filters []core.Filter
Logger ILogger // io.Writer Logger ILogger // io.Writer
@ -190,7 +191,9 @@ func (engine *Engine) LogError(contents ...interface{}) {
// logging error // logging error
func (engine *Engine) LogInfo(contents ...interface{}) { func (engine *Engine) LogInfo(contents ...interface{}) {
engine.Logger.Info(fmt.Sprintln(contents...)) if engine.ShowInfo {
engine.Logger.Info(fmt.Sprintln(contents...))
}
} }
// logging debug // logging debug