Yes I saw the nice commentary in logger.py about customization which is great.
WEEWX-INFO is just an example trying to show that it came from weewx and it's info severity. I used to do things like that with 'logger -t' from bash so I could later poster the logs readily. Makes it easy to grep or regexp. The default now looks kinda hard to filter based on, but maybe folks who do a lot more of that with their weeex logs should chime in with their thoughts. On Sat, Aug 24, 2019, 5:25 PM Thomas Keffer <[email protected]> wrote: > You can change the log format to anything you want with a [Logging] > section in weewx.conf, but I'm open to getting the default right. > > What is the significance of [WEEWX.INFO]? That INFO is part of some sort > of WEEWX domain? > > -tk > > On Sat, Aug 24, 2019 at 5:15 PM Vince Skahan <[email protected]> > wrote: > >> On Saturday, August 24, 2019 at 5:53:39 AM UTC-7, Tom Keffer wrote: >>> >>> I've posted a new alpha version of WeeWX V4. Find it at >>> http://weewx.com/downloads/development_versions/ >>> >>> >>> >> Installs and runs fine in Simulator on Raspbian current (debian 10.0) >> using both python2 and python3.... >> >> >> The log format surprised me a bit: >> >> Aug 24 16:00:18 pi4 weewx[17512]/INFO weewx.imagegenerator: Generated 28 >> images for SeasonsReport in 1.46 seconds >> Aug 24 16:00:18 pi4 weewx[17512]/INFO weewx.reportengine: copygenerator: >> Copied 0 files to /home/weewx/public_html >> >> >> Is that something we can think about tweaking a little to be more >> mainstream looking ? >> >> Maybe something more like: >> >> Aug 24 16:00:18 pi4 weewx[17512]: [WEEWX.INFO] weewx.imagegenerator: >> Generated 28 images for SeasonsReport in 1.46 seconds >> >> >> Typically you'd have the service[pid]: followed by the message.... >> >> Basically I'm concerned about parsing the logs easily and/or splitting >> weewx logs into different logfiles etc. as lots of folks tend to do. >> >> >> >> -- >> 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/d60000f3-ef1c-4d38-917e-ff2753abf39b%40googlegroups.com >> <https://groups.google.com/d/msgid/weewx-development/d60000f3-ef1c-4d38-917e-ff2753abf39b%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/CAENBs48mJbZtnEKpZzpu3BRVipqiCHdDpTszeLQpmH43b2oLPw%40mail.gmail.com.
