[Logging][[formatters]][[[verbose]]]format = '%(asctime)s %(levelname)s %(name)s|%(message)s'datefmt = %Y-%m-%d %H:%M:%S[[[standard]]]format = '%(asctime)s %(levelname)s %(name)s|%(message)s'datefmt = %Y-%m-%d %H:%M:%S[[[simple]]]format = '%(asctime)s %(levelname)s %(name)s|%(message)s'datefmt = %Y-%m-%d %H:%M:%S
May 2 21:59:44 pebble weewx[1663] INFO __main_] <Info>: Platform Darwin-17.7.0-x86_64-i386-64bit
--
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/55F10FED-0D65-4010-9D74-D61203848291%40gmail.com.
[Logging][[loggers]][[[root]]]level = DEBUGpropogate = Truehandlers = syslog, rotate[[handlers]][[[rotate]]]level = DEBUGformatter = standardclass = logging.handlers.RotatingFileHandlerfilename = /tmp/weewx.logmaxBytes = 10000000backupCount = 2
Traceback (most recent call last):File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/config.py", line 563, in configurehandler = self.configure_handler(handlers[name])File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/config.py", line 736, in configure_handlerresult = factory(**kwargs)File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/handlers.py", line 146, in __init__if maxBytes > 0:TypeError: '>' not supported between instances of 'str' and ‘int’ < - - - SEE HEREThe above exception was the direct cause of the following exception:Traceback (most recent call last):File "bin/weewxd", line 261, in <module>main()File "bin/weewxd", line 136, in mainweeutil.logger.setup(options.log_label, config_dict)File "/opt/weewx/bin/weeutil/logger.py", line 203, in setuplogging.config.dictConfig(log_dict)File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/config.py", line 800, in dictConfigdictConfigClass(config).configure()File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/config.py", line 571, in configure'%r' % name) from eValueError: Unable to configure handler 'rotate'
{'version': 1, 'disable_existing_loggers': False, 'loggers': {'': {'level': 'DEBUG', 'propagate': True, 'handlers': ['syslog'], 'propogate': 'True'}}, 'handlers': {'syslog': {'level': 'DEBUG', 'formatter': 'standard', 'class': 'logging.handlers.SysLogHandler', 'address': '/var/run/syslog', 'facility': 'local1'}, 'console': {'level': 'DEBUG', 'formatter': 'verbose', 'class': 'logging.StreamHandler', 'stream': 'ext://sys.stdout'}, 'rotate': {'level': 'DEBUG', 'formatter': 'standard', 'class': 'logging.handlers.RotatingFileHandler', 'filename': '/tmp/weewx.log', 'maxBytes': '10000000', 'backupCount': '2'}}, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}, 'standard': {'format': 'weewx[%(process)d] %(levelname)s %(name)s: %(message)s'}, 'verbose': {'format': '%(asctime)s weewx[%(process)d] %(levelname)s %(name)s: %(message)s', 'datefmt': '%Y-%m-%d %H:%M:%S'}}}
--
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/85C23BE1-912C-4EAA-80AC-F7E81F8EE021%40gmail.com.
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/logging/config.py", line 381, in resolvename = s.split('.')AttributeError: 'NoneType' object has no attribute 'split'
[Logging]# [[loggers]]# [[[root]]]# level = DEBUG# propogate = True# handlers = syslog, rotate[[handlers]][[[rotate]]]# level = DEBUG# formatter = standard
class = logging.handlers.RotatingFileHandlerfilename = /tmp/weewx.log
# maxBytes = 10000000# backupCount = 2
def _intify_string_leaf(section, key):
if isinstance(section[key], str):# The value is a string...try:value = int(section[key])except ValueError:passelse:# ... looks like an int, so make it onesection[key] = valuelog_config['Logging'].walk(_intify_string_leaf)
On 3 May 2020, at 5:07 am, Tom Keffer <tke...@gmail.com> wrote:
--
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/AB7F41D1-FD08-400D-B80A-01E53BD42D5A%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/819f1a6c-2ae0-4861-a5c1-726512243c5an%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/41b027e6-29a4-45c6-8bdb-8cb93a0a3640n%40googlegroups.com.