I've been experimenting/learning about the logging in v4. I am very excited and impressed! Reading https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging, the example of quieting a chatty module seems to be the opposite of what I, as an extension writer, would want. Meaning, most like likely I would like to turn my module logging to DEBUG while leaving other modules at INFO. Adding the following to the [Logging][[loggers]] section seems to do what I want. Is there a better way? Is it worth adding to the wiki as another example? # Just want DEBUG for this module # Assuming WeeWX debug flag is 0, root logging level {log_level} is INFO # Along with setting the level, need to setup a handler for this module's logger # Do not want to propagate because INFO and higher would be doubled logged [[[user.MQTTSubscribe]]] level = DEBUG handlers = syslog, propagate = 0 Thanks. - Rich
-- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/8b94243d-08e2-4d3f-b751-8c564c44bff7%40googlegroups.com.
