You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catching log statements with OutputDirectoryLogging.catchLogEntries() does not work with MATSim 2024.0 or 2025.0-SNAPSHOT.
Each log statement before logging is regularly initialized by the controller looks like this:
2024-10-30T09:13:26,415 OFF ?:
2024-10-30T09:13:26,415 OFF ?:
2024-10-30T09:13:26,415 OFF ?:
I debugged a little bit:
during early logs you can watch the list of logEvents (with instances of MutableLogEvent) in CollectLogMessagesAppender grow - and the events in the list contain valid log entries
but when it's time to write them to the log (i.e. when OutputDirectoryLogging.initLogging is called from the controller) the length of the logEvents list seems to be OK but it only contains references to the same event with all fields set to null
But I have no clue where the log events are razed :/
Catching log statements with
OutputDirectoryLogging.catchLogEntries()
does not work with MATSim 2024.0 or 2025.0-SNAPSHOT.Each log statement before logging is regularly initialized by the controller looks like this:
I debugged a little bit:
logEvents
(with instances ofMutableLogEvent
) inCollectLogMessagesAppender
grow - and the events in the list contain valid log entriesOutputDirectoryLogging.initLogging
is called from the controller) the length of thelogEvents
list seems to be OK but it only contains references to the same event with all fields set to nullBut I have no clue where the log events are razed :/
How to reproduce: Run https://github.com/matsim-org/matsim-code-examples/blob/2024.x/src/main/java/org/matsim/codeexamples/events/eventsHandling/RunEventsHandlingWithControlerExample.java and have a look at
logfile.log
The text was updated successfully, but these errors were encountered: