Skip to content

Commit

Permalink
Critical message force flush
Browse files Browse the repository at this point in the history
  • Loading branch information
goodsign committed May 20, 2012
1 parent d366ff0 commit e8f101f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logger.go
Expand Up @@ -67,6 +67,7 @@ type LoggerInterface interface {
// innerLoggerInterface is an internal logging interface
type innerLoggerInterface interface {
innerLog(level LogLevel, context logContextInterface, format string, params []interface{})
Flush()
}


Expand Down Expand Up @@ -140,7 +141,7 @@ func (cLogger *commonLogger) errorWithCallDepth(callDepth int, format string, pa

func (cLogger *commonLogger) criticalWithCallDepth(callDepth int, format string, params []interface{}) {
cLogger.log(CriticalLvl, format, params, callDepth)
cLogger.Flush()
cLogger.innerLogger.Flush()
}

func (cLogger *commonLogger) Closed() bool {
Expand Down

0 comments on commit e8f101f

Please sign in to comment.