Menu

Commit [r23269]  Maximize  Restore  History

catchLogEntries doesn't do anything if there is already a CollectLogMessagesAppender

This allows the following pattern:

OutputDirectoryLogging.catchLogEntries()
// some initialisation code which produces log msgs,
// which will be catched and subsequently dumped to the
// logfile
Scenario sc = MySenarioUtils.createScenario();
Controler c = new Controler( sc );
c.run();

This didn't work before, because only the CollectLogMessagesAppender
created and added in the last call to ODL.catchLogEntries() was
considered when creating the logFile.

thibautd 2013-03-01

changed /matsim/trunk/src/main/java/org/matsim/core/controler/OutputDirectoryLogging.java
/matsim/trunk/src/main/java/org/matsim/core/controler/OutputDirectoryLogging.java Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.