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"
|
||||
)
|
||||
|
||||
// Print - Normal logging
|
||||
func Print(args ...interface{}) {
|
||||
if verify(NormalLOG) {
|
||||
internalLog.Print(args...)
|
||||
}
|
||||
}
|
||||
|
||||
// Printf - Normal formatted logging
|
||||
func Printf(s string, args ...interface{}) {
|
||||
if verify(NormalLOG) {
|
||||
internalLog.Printf(s, args...)
|
||||
}
|
||||
}
|
||||
|
||||
// Println - Normal logging with newline
|
||||
func Println(args ...interface{}) {
|
||||
if verify(NormalLOG) {
|
||||
internalLog.Println(args...)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user