Skip to content

Commit

Permalink
syslog windows and non-windows quick fiX
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Aug 10, 2021
1 parent c3b6523 commit 460ecc0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
File renamed without changes.
21 changes: 21 additions & 0 deletions src/output_syslog_nonlinux.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// +build !linux

// This entire file is a dummy one to make sure all our cross platform builds work even if the underlying OS doesn't suppot some of the functionality
// afpacket is a Linux-only feature, so we want the relevant function to technically "translate" to something here, which basically returns an error

package main

import (
log "github.com/sirupsen/logrus"
)

var syslog struct {
Writer bool
Dial bool
LOG_WARNING bool
LOG_DAEMON bool
}

func syslogOutput(sysConfig syslogConfig) {
log.Error("No Syslog is supported in Windows")
}

0 comments on commit 460ecc0

Please sign in to comment.