Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
name5566 committed Dec 30, 2016
1 parent 8f159db commit b4a5928
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (logger *Logger) doPrintf(level int, printLevel string, format string, a ..
}

format = printLevel + format
logger.baseLogger.Printf(format, a...)
logger.baseLogger.Output(3, fmt.Sprintf(format, a...))

if level == fatalLevel {
os.Exit(1)
Expand Down Expand Up @@ -133,19 +133,19 @@ func Export(logger *Logger) {
}

func Debug(format string, a ...interface{}) {
gLogger.Debug(format, a...)
gLogger.doPrintf(debugLevel, printDebugLevel, format, a...)
}

func Release(format string, a ...interface{}) {
gLogger.Release(format, a...)
gLogger.doPrintf(releaseLevel, printReleaseLevel, format, a...)
}

func Error(format string, a ...interface{}) {
gLogger.Error(format, a...)
gLogger.doPrintf(errorLevel, printErrorLevel, format, a...)
}

func Fatal(format string, a ...interface{}) {
gLogger.Fatal(format, a...)
gLogger.doPrintf(fatalLevel, printFatalLevel, format, a...)
}

func Close() {
Expand Down

0 comments on commit b4a5928

Please sign in to comment.