I followed these instructions and now I'm getting the log output in both /var/log and in syslog. Can someone help? If it would help I'll post all the various config files.
I followed these instructions and now I'm getting the log output in both /var/log and in syslog. Can someone help? If it would help I'll post all the various config files.
Matthew - is there a bug in the rsyslog file or in rsyslog perhaps ?Why aren't the two lines ending with '~' stopping the processing to prevent the multiple matches ?
:programname,isequal,"weewx" /var/log/weewx.log :programname,isequal,"weewx" ~ :programname,startswith,"wee_" /var/log/weewx.log :programname,startswith,"wee_" ~ #if $programname == 'weewx' then /var/log/weewx.log #if $programname == 'weewx' then ~
My /etc/rsyslog.d/weewx.conf symlink points to that etc/weewx/rsyslog.d/weewx.conf file.
Matthew - is there a bug in the rsyslog file or in rsyslog perhaps ?Why aren't the two lines ending with '~' stopping the processing to prevent the multiple matches ?
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/rLa7fqveuJY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Now it is logging to /var/log/syslog and I can't get it back to /var/log/weewx.log. So I still need help.
In any case, thanks to all. I now have a readable syslog. I had disk errors buried in there that I wouldn't have seen with the weewx logging. May I suggest the default logging not be in syslog? Isn't that meant for system logging, not app logging?
--
arguments against a separate weewx log for a default install:
- there is no single syslog/rsyslog configuration that works across operating systems and versions