Skip to content

Commit 655a58e

Browse files
author
John Howard
committed
Windows: Factor out syslog and journald
Signed-off-by: John Howard <jhoward@microsoft.com>
1 parent fe6f77d commit 655a58e

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

daemon/logdrivers_windows.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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/jsonfilelog"
7+
)

daemon/logger/journald/journald.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build linux
2+
13
package journald
24

35
import (
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// +build !linux
2+
3+
package journald

daemon/logger/syslog/syslog.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build linux
2+
13
package syslog
24

35
import (
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// +build !linux
2+
3+
package syslog

0 commit comments

Comments
 (0)