Renamed variables for consistency
This commit is contained in:
1 parent
c63b163703
commit
840c0b9f86
10 files changed
+135
-134
No files matched your search
+5
-5
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
standard_log_flags = log.Ldate | log.Ltime | log.Lshortfile
|
||||
standardLogFlags = log.Ldate | log.Ltime | log.Lshortfile
|
||||
)
|
||||
|
||||
// Inspired by http://www.goinggo.net/2013/11/using-log-package-in-go.html
|
||||
@@ -25,10 +25,10 @@ func InitLogging(debugHandle io.Writer,
|
||||
warningHandle io.Writer,
|
||||
errorHandle io.Writer) {
|
||||
|
||||
Debug = log.New(debugHandle, "DEBUG: ", standard_log_flags)
|
||||
Info = log.New(infoHandle, "INFO: ", standard_log_flags)
|
||||
Warning = log.New(warningHandle, "WARNING: ", standard_log_flags)
|
||||
Error = log.New(errorHandle, "ERROR: ", standard_log_flags)
|
||||
Debug = log.New(debugHandle, "DEBUG: ", standardLogFlags)
|
||||
Info = log.New(infoHandle, "INFO: ", standardLogFlags)
|
||||
Warning = log.New(warningHandle, "WARNING: ", standardLogFlags)
|
||||
Error = log.New(errorHandle, "ERROR: ", standardLogFlags)
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Reference in new issue
Block a user