Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Logging configuration (or trying to get Withrottle to be quieter)
#logging
WiThrottle likes to spam my system console with irrelevant INFO messages and I'd like to quiet it down.
I've found PanelPro -> Debug -> Display/Edit Log Categories and can change jmri.jmrit.withrottle.DeviceServer to WARN but this is only good for the session. says "A "default_lcf.xml" file in the User Settings directory will take precedence over the default_lcf.xml file in the main program directory. The main program directory version will be reset each time JMRI is updated, whereas the user preference version will not be updated." According to Help -> File Locations there isn't a User Settings location; there is a 'User Files' location, and there's a 'Settings' location. Which one is it? Second question - is this an adequate default_lcf.xml file assuming I can figure out where to put it: <?xml version="1.0" encoding="UTF-8"?> <!-- # default_lcf.xml --> <Configuration status="INFO"> <Loggers> # Minimise WiThrottle noise tdc 2025-02-22 13:52 <Logger name="jmri.jmrit.withrottle.DeviceServer" level="WARN"> </Loggers> </Configuration> Thanks much. -- Tim D. Childs tim.d.childs@... Lansing Model Railroad Club - lmrc.org |
Tim,
toggle quoted message
Show quoted text
It is the settings location. For Windows, that is C:\Users\<username\JMRI. Dave Sand ----- Original message -----
From: "tdc via groups.io" <tim.d.childs@...> To: [email protected] Subject: [jmriusers] Logging configuration (or trying to get Withrottle to be quieter) Date: Saturday, February 22, 2025 4:50 PM WiThrottle likes to spam my system console with irrelevant INFO messages and I'd like to quiet it down. I've found PanelPro -> Debug -> Display/Edit Log Categories and can change jmri.jmrit.withrottle.DeviceServer to WARN but this is only good for the session. says "A "default_lcf.xml" file in the User Settings directory will take precedence over the default_lcf.xml file in the main program directory. The main program directory version will be reset each time JMRI is updated, whereas the user preference version will not be updated." According to Help -> File Locations there isn't a User Settings location; there is a 'User Files' location, and there's a 'Settings' location. Which one is it? Second question - is this an adequate default_lcf.xml file assuming I can figure out where to put it: <?xml version="1.0" encoding="UTF-8"?> <!-- # default_lcf.xml --> <Configuration status="INFO"> <Loggers> # Minimise WiThrottle noise tdc 2025-02-22 13:52 <Logger name="jmri.jmrit.withrottle.DeviceServer" level="WARN"> </Loggers> </Configuration> Thanks much. -- Tim D. Childs tim.d.childs@... Lansing Model Railroad Club - lmrc.org |
Hi Tim,
?
Use the existing default_lcf.xml from the program directory, ( for my Win install that's "C:\Program Files (x86)\JMRI\default_lcf.xml" )
as a starting template, or see ?.
?
?
Copy / paste that file to your settings location and edit that version.
The parts towards the start of the file are required to initialise JMRI logging.
The settings version does not inherit from the program directory version.
?
Add customisations towards the end of the Loggers section, where the examples are.
?
?
I'll add some text to Debug.shtml discussing this.
?
?
Out of interest, which parts of the WiThrottle logging do you think are excessive ?
?
Ta, Steve.
?
--
Steve Young, Member JMRI Dev Team |
On 2/23/25 9:12 AM, Steve Young via groups.io wrote:
Hi Tim,Thank you for the clarification. Out of interest, which parts of the WiThrottle logging do you think are excessive ?These messages: 21:16:46,542 jmri.jmrit.withrottle.DeviceServer INFO - Received Name: TopDeadCenter [DeviceServer-1] 21:16:51,569 jmri.jmrit.withrottle.DeviceServer INFO - Received Name: TopDeadCenter [DeviceServer-1] 21:16:56,577 jmri.jmrit.withrottle.DeviceServer INFO - Received Name: TopDeadCenter [DeviceServer-1] 21:17:01,584 jmri.jmrit.withrottle.DeviceServer INFO - Received Name: TopDeadCenter [DeviceServer-1] A constant stream of them and for every throttle on the system. Some more than others. I maintain systems at two different layouts plus my development system at home and it does it on all of 'em. -- Tim D. Childs tim.d.childs@... -- "I love deadlines. I especially love the whooshing sound they make as they fly by..." - Douglas Adams, 'Hitchhiker's Guide to the Galaxy' |
to navigate to use esc to dismiss