mirror of
https://github.com/minio/minio.git
synced 2026-11-18 23:00:19 +00:00
Implement log package as drop-in replacement for handling Debug log-level
This commit is contained in:
1 parent
80892c5c9b
commit
914962bd93
11 files changed
+169
-21
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package log
|
||||
|
||||
import (
|
||||
internalLog "log"
|
||||
)
|
||||
|
||||
// Debug logging
|
||||
func Debug(args ...interface{}) {
|
||||
if verify(DebugLOG) {
|
||||
internalLog.Print(args...)
|
||||
}
|
||||
}
|
||||
|
||||
// Debugf formatted debug logging
|
||||
func Debugf(s string, args ...interface{}) {
|
||||
if verify(DebugLOG) {
|
||||
internalLog.Printf(s, args...)
|
||||
}
|
||||
}
|
||||
|
||||
// Debugln logging with newline
|
||||
func Debugln(args ...interface{}) {
|
||||
if verify(DebugLOG) {
|
||||
internalLog.Println(args...)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user