mcuadros / go-syslog

Syslog server library for go.
http://godoc.org/gopkg.in/mcuadros/go-syslog.v2
MIT License
523 stars 143 forks source link

Can't log into example #14

Closed ChristianKniep closed 8 years ago

ChristianKniep commented 9 years ago

Hey there,

thanks for your example but for me it does not work as expected. Maybe I use it wrong.

I build the example script within a container:

$ docker run -ti --rm --privileged -v $(pwd):/data/ qnib/cos7-build /bin/bash
[root@71ac0bd6ad23 /]# export GOPATH=/tmp/
[root@71ac0bd6ad23 /]# cd /data/
[root@71ac0bd6ad23 data]# go get -d
[root@71ac0bd6ad23 data]# sed -i -e 's/514/1514/' basic_udp.go
[root@71ac0bd6ad23 data]# go build

I start the server, get into the container and issue a log...

[root@71ac0bd6ad23 data]# ./data
# separat bash
$ docker exec -ti insane_cori bash
[root@2d27e5e06154 /]# logger -n 127.0.0.1 -P 1514 -d TestLog

Sadly I can not see a log on the other side? What am I doing wrong?

Cheers Christian