System logging under Cygwin

Today I installed syslog-ng in Cygwin which provides system logging. It was simply a matter of installing the package and then running the command syslog-ng-config from a Cygwin terminal run as Administrator.

As you can imagine, there’s not a who lot going on in Cygwin to be logging, but there are occasionally a few things I do want to see in a log file.

Note, I got the following error during installation (you can see the details in /var/log/setup.log.full):

/usr/bin/mkfifo: cannot create fifo `/var/spool/syslog-notify’: No such file or directory
/usr/bin/chmod: cannot access `/var/spool/syslog-notify’: No such file or directory

which I solved by doing the following in a Cygwin shell run as Administrator:
mkdir /var/spool
bash.exe --norc --noprofile "/etc/postinstall/syslog-notify.sh"


Comments

Leave a Reply