libgocryptfs/cryptfs/log.go

20 lines
261 B
Go
Raw Normal View History

2015-09-03 18:57:28 +02:00
package cryptfs
2015-09-03 18:22:18 +02:00
import (
"fmt"
)
type logChannel struct {
enabled bool
}
func (l logChannel) Printf(format string, args ...interface{}) {
if l.enabled == true {
fmt.Printf(format, args...)
}
}
var Debug = logChannel{true}
2015-09-05 20:36:26 +02:00
var Warn = logChannel{true}