Skip to content

Commit

Permalink
Windows: Factor out syslog and journald
Browse files Browse the repository at this point in the history
Signed-off-by: John Howard <jhoward@microsoft.com>
  • Loading branch information
John Howard committed May 14, 2015
1 parent fe6f77d commit 655a58e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
File renamed without changes.
7 changes: 7 additions & 0 deletions daemon/logdrivers_windows.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package daemon

// Importing packages here only to make sure their init gets called and
// therefore they register themselves to the logdriver factory.
import (
_ "github.com/docker/docker/daemon/logger/jsonfilelog"
)
2 changes: 2 additions & 0 deletions daemon/logger/journald/journald.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package journald

import (
Expand Down
3 changes: 3 additions & 0 deletions daemon/logger/journald/journald_unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !linux

package journald
2 changes: 2 additions & 0 deletions daemon/logger/syslog/syslog.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build linux

package syslog

import (
Expand Down
3 changes: 3 additions & 0 deletions daemon/logger/syslog/syslog_unsupported.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !linux

package syslog

0 comments on commit 655a58e

Please sign in to comment.