diff --git a/logging.go b/logging.go index 183bcfb..d85689f 100644 --- a/logging.go +++ b/logging.go @@ -54,7 +54,7 @@ var ( func (l *logStream) Printf(format string, a ...interface{}) { // describe(a) - if LogLevel >= l.logLevel { + if LogLevel < l.logLevel { return } @@ -80,7 +80,7 @@ func determineLogLevel(lstr string) int { return logLevelStringMap[lstrLowerCase] } -func initLogger(logFile string, logLevelStr string, logToConsole bool) { +func InitLogger(logFile string, logLevelStr string, logToConsole bool) { LogLevel = determineLogLevel(logLevelStr)