how to control logging?

84 views
Skip to first unread message

Zed

unread,
Mar 20, 2023, 7:59:08 AM3/20/23
to weewx-user

I am using weewx 4.9.1 with a Bresser5in1 together with the extension bme280wx in version 1.0.
For every messure I find messages like these every ~ 15 seconds in each of user.log, syslog,  debug and messages:

... weewxd: bme280: {'outHumidity': 99.0, 'outTemp': 9.1, ...
... weewxd: bme280: BME280 data compensated_reading(id=...

Off cource this is filling my /var/log filesystem every couple of days.
I followed the advice in How to limit syslog logging which didn't help much.
How can i control in which log files these messages are being logged?

debug = 0 is set in weewx.conf.

Tom Keffer

unread,
Mar 20, 2023, 12:00:17 PM3/20/23
to weewx...@googlegroups.com
It appears that the bme280wx extension has not been updated and still uses the old style "syslog" logging. Assuming you are using a Debian based system, this can only be controlled through /etc/rsyslog. See "man rsyslog.conf"

Or, modify the extension to use the newer style Python "logging", then submit a merge request to the author. It looks like someone did this 9 months ago, but the author has not acted on the request. Perhaps you can just copy the merge request?

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b3f7c414-9e6f-4dde-98b0-1929916a30a4n%40googlegroups.com.

Zed

unread,
Mar 21, 2023, 9:34:18 AM3/21/23
to weewx-user
Thank you Tom
The uncommited version 1.0.1 works well for me!

Mark Fraser

unread,
Mar 27, 2023, 6:01:51 AM3/27/23
to weewx...@googlegroups.com
On 20/03/2023 15:59, Tom Keffer wrote:
> It appears that the bme280wx extension has not been updated and still
> uses the old style "syslog" logging. Assuming you are using a Debian
> based system, this can only be controlled through /etc/rsyslog. See "man
> rsyslog.conf"
>
> Or, modify the extension to use the newer style Python "logging", then
> submit a merge request to the author. It looks like someone did this 9
> months ago <https://gitlab.com/wjcarpenter/bme280wx/-/merge_requests/2>,
> but the author has not acted on the request. Perhaps you can just copy
> the merge request?
>
> -tk
>
> On Mon, Mar 20, 2023 at 4:59 AM Zed <welf.t...@gmail.com
> <mailto:welf.t...@gmail.com>> wrote:
>
> I am using weewx 4.9.1 with a Bresser5in1 together with the
> extension bme280wx in version 1.0.
> For every messure I find messages like these every ~ 15 seconds in
> each of user.log, syslog,  debug and messages:
>
> ... weewxd: bme280: {'outHumidity': 99.0, 'outTemp': 9.1, ...
> ... weewxd: bme280: BME280 data compensated_reading(id=...
>
> Off cource this is filling my /var/log filesystem every couple of days.
> I followed the advice in How to limit syslog logging
> <https://groups.google.com/g/weewx-user/c/F-NSuxfXgSg/m/gEsXENLoCgAJ> which didn't help much.
> How can i control in which log files these messages are being logged?
>
> debug = 0 is set in weewx.conf.

That was me. My forked version can be found at
<https://gitlab.com/mfraz74/bme280wx/>

Zed

unread,
Mar 27, 2023, 7:46:34 AM3/27/23
to weewx-user
Thank you Mark!
As written before it is working well for me!
Reply all
Reply to author
Forward
0 new messages