mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
Implement log package as drop-in replacement for handling Debug log-level
This commit is contained in:
@@ -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