Hi there!
I recently installed weewx on a CentOS stream fresh install.
I wanted to move weewx logs in a separate file, using what's provided in /etc/weewx/rsyslog.d
I think this file may need some updates (or I missed something ?)
in the logs (/var/log/messages on my distro), weewx does not show directly as a program but as sub something of "journal", like this:
May 27 12:31:57 myserver journal[794]: weewx[794] INFO user.sftp: sftpgenerator: transferred 19 files in 13.40 seconds
so I modified the rsyslog settings this way:
# use this syntax for rsyslog in most modern distributions
:programname,contains,"weewx" /var/log/weewx/weewx.log
:programname,contains,"weewx" stop
:msg,startswith,"weewx" /var/log/weewx/weewx.log
:msg,startswith,"weewx" stop
:programname,startswith,"wee_" /var/log/weewx/weewx.log
:programname,startswith,"wee_" stop
:msg,startswith,"wee_" /var/log/weewx/weewx.log
:msg,startswith,"wee_" stop
it works more or less, except with the logs from my custom driver that still show up in /var/log/messages this way:
May 27 12:36:21 myserver /weewxd[794]: wxMesh: packet content: outHumidity = 51.86
Is there something I shall try for those "/weewxd" message?