1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build !windows,!plan9
16 sysLog
, err
:= syslog
.Dial("tcp", "localhost:1234",
17 syslog
.LOG_WARNING|syslog
.LOG_DAEMON
, "demotag")
21 fmt
.Fprintf(sysLog
, "This is a daemon warning with demotag.")
22 sysLog
.Emerg("And this is a daemon emergency with demotag.")