libgocryptfs/internal/tlog/log_go1.4.go
Jakob Unterwurzacher 547ddf4264 tlog: switch default logger to syslog
...unless "-nosyslog" is passed.

All gocryptfs messages already go to syslog, but the messages
that the go-fuse lib emits were still printed to stdout.

Fixes issue #13 ( https://github.com/rfjakob/gocryptfs/issues/13 )
2016-06-26 23:30:22 +02:00

17 lines
319 B
Go

// +build !go1.5
// = go 1.4 or lower
package tlog
import (
"log/syslog"
)
func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) {
Info.Printf("Cannot switch to syslog - need Go 1.5 or higher")
}
func SwitchLoggerToSyslog(p syslog.Priority) {
Info.Printf("Cannot switch to syslog - need Go 1.5 or higher")
}