I have never been able to get system logging from Python to work on the Mac. I'm sure it can be done --- I just don't know how. If you Google around, apparently others have struggled to get it to work as well.
Instead, I just log to a rotating file. See the section *Logging to rotating files <https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging#logging-to-rotating-files>* in the Wiki. The example logs to /var/log/weewx.log, which will require root privileges. Another option is to log to /Users/Shared/weewx/weewx.log, or some other place where you don't need those privileges. On Sun, May 21, 2023 at 2:47 AM Graham Eddy <[email protected]> wrote: > tom did not say that 4.10.2 removed [Logging], he did ask you to remove > that section temporarily, to get it to use default, in case your own > content of that section was wrong. tom said that you were using a specific > item (i think it was ‘rotate’) that was removed in 4.10.2 and thus causing > your runtime error > > i think in macOS the default behaviour is to log under /var/log/system.log > > once the default configuration is working, no doubt you will add some > entries to [Logging] to use a file of your choice, such as > /var/log/weewx.log > *⊣GE⊢* > > On 21 May 2023, at 7:33 pm, [email protected] <[email protected]> > wrote: > > However, I am still having some problem and I'm struggling to identify > exactly what because I'm not sure how to check the logs on MacOS. I'm sorry > for the noob question, but can someone please guide me on where weewx is > logging to? I can confirm that it is not /var/log/weewx.log or > /var/tmp/weewx.log. Originally I had added a [Logging] section in > weewx.conf but now the weewx 4.10.2 has removed that functionality I am not > sure how else to log weewx output to a different file. > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/ADD2976B-D69E-4BD4-A23F-FA1D439063DC%40geddy.au > <https://groups.google.com/d/msgid/weewx-user/ADD2976B-D69E-4BD4-A23F-FA1D439063DC%40geddy.au?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zECF%3DacUMLGsb68uJNmbsT4EpnwEXZ1qQUcgCS7WNbyo9g%40mail.gmail.com.
