Which version of WeeWX? It's possible your version of WeeWX does not have a rotating logger defined for the Mac.
Try following the instructions in the wiki article *Logging to rotating files <https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging#logging-to-rotating-files>* . On Sun, Aug 27, 2023 at 12:30 PM David Barto <[email protected]> wrote: > Following the instructions found in > http://weewx.com/docs.html/latest/macos.htm under Logging, I added > (copy/pasted) the alternative to log to /var/tmp/weewx.log and get this > error when starting up. > > Is it not possible to log to an alternative location? > > David > > Traceback (most recent call last): > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", > line 565, in configure > handler = self.configure_handler(handlers[name]) > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", > line 723, in configure_handler > klass = self.resolve(cname) > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", > line 383, in resolve > name = s.split('.') > AttributeError: 'NoneType' object has no attribute 'split' > > The above exception was the direct cause of the following exception: > > Traceback (most recent call last): > File "/Users/Shared/weewx/bin/weewxd", line 249, in <module> > main() > File "/Users/Shared/weewx/bin/weewxd", line 98, in main > weeutil.logger.setup(options.log_label, config_dict) > File "/Users/Shared/weewx-4.10.2/bin/weeutil/logger.py", line 139, in > setup > logging.config.dictConfig(log_dict) > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", > line 811, in dictConfig > dictConfigClass(config).configure() > File > "/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", > line 572, in configure > raise ValueError('Unable to configure handler ' > ValueError: Unable to configure handler 'rotate' > > > Never ascribe to malice that which is adequately explained by incompetence > --Napoleon Bonaparte > David Barto > [email protected] > > > -- > 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/E5347A3B-8C00-488A-A3A6-314148758F7C%40kdbarto.org > . > -- 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/CAPq0zEDyL%2B23ta_WHDNwCOGpFXfmBy8eaBXfHMCHSfsxGL%3DMkg%40mail.gmail.com.
