libgocryptfs/cryptfs/log.go
2015-09-03 19:09:11 +02:00

20 lines
261 B
Go

package cryptfs
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}
var warn = logChannel{true}