Loading...
 

PogamutUT2004


Log output

How do I reduce the amount of log output I see?
I would rather not see all of the INFO log messages,
and sometimes I don't even want to see the WARNING
messages.
Put this into prepareBot or botInitialized method. It should disable all the logging.

//setting log level
        getLog().setLevel(Level.OFF);


Does it work?

Michal
This does stop the bot from logging, but it doesn't stop the logs of everything else. I'm running multiple servers and multiple bots, and the main reason I want to get rid of it all is that it hides my own output which I use to actually find out what's going on.

However, I found my own method of dealing with the problem that I'd like to share: I use the NetBeans plugin and run my code from NetBeans. In the output window you can right-click to get a menu. If you choose "Filter" and check "Regular Expression", then the following regex can be used to filter log messages of different types:

^(?!.*(\INFO\|\ALL\|\WARNING\)).*$

This filters INFO, ALL and WARNING log messages. The nice thing is that you can turn the filter off to get the log info back if you need it for some reason.
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.