You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
421 B
27 lines
421 B
10 years ago
|
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...)
|
||
|
}
|
||
|
}
|