Browse code

Windows: Factor out syslog and journald

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2015/05/15 02:20:00
Showing 7 changed files
1 1
deleted file mode 100644
... ...
@@ -1,9 +0,0 @@
1
-package daemon
2
-
3
-// Importing packages here only to make sure their init gets called and
4
-// therefore they register themselves to the logdriver factory.
5
-import (
6
-	_ "github.com/docker/docker/daemon/logger/journald"
7
-	_ "github.com/docker/docker/daemon/logger/jsonfilelog"
8
-	_ "github.com/docker/docker/daemon/logger/syslog"
9
-)
10 1
new file mode 100644
... ...
@@ -0,0 +1,9 @@
0
+package daemon
1
+
2
+// Importing packages here only to make sure their init gets called and
3
+// therefore they register themselves to the logdriver factory.
4
+import (
5
+	_ "github.com/docker/docker/daemon/logger/journald"
6
+	_ "github.com/docker/docker/daemon/logger/jsonfilelog"
7
+	_ "github.com/docker/docker/daemon/logger/syslog"
8
+)
0 9
new file mode 100644
... ...
@@ -0,0 +1,7 @@
0
+package daemon
1
+
2
+// Importing packages here only to make sure their init gets called and
3
+// therefore they register themselves to the logdriver factory.
4
+import (
5
+	_ "github.com/docker/docker/daemon/logger/jsonfilelog"
6
+)
... ...
@@ -1,3 +1,5 @@
1
+// +build linux
2
+
1 3
 package journald
2 4
 
3 5
 import (
4 6
new file mode 100644
... ...
@@ -0,0 +1,3 @@
0
+// +build !linux
1
+
2
+package journald
... ...
@@ -1,3 +1,5 @@
1
+// +build linux
2
+
1 3
 package syslog
2 4
 
3 5
 import (
4 6
new file mode 100644
... ...
@@ -0,0 +1,3 @@
0
+// +build !linux
1
+
2
+package syslog