aboutsummaryrefslogtreecommitdiff
path: root/internal/toggledlog/log_go1.4.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/toggledlog/log_go1.4.go')
-rw-r--r--internal/toggledlog/log_go1.4.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/toggledlog/log_go1.4.go b/internal/toggledlog/log_go1.4.go
new file mode 100644
index 0000000..4cdba44
--- /dev/null
+++ b/internal/toggledlog/log_go1.4.go
@@ -0,0 +1,12 @@
+// +build !go1.5
+// = go 1.4 or lower
+
+package toggledlog
+
+import (
+ "log/syslog"
+)
+
+func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) {
+ Debug.Printf("Cannot switch to syslog - need Go 1.5 or higher")
+}