|Per-application log doesn't capture bundle startup message [message #997273]
||Fri, 04 January 2013 16:26
| Chris Pimlott
Registered: January 2013
I have been reading about logback and the base serviceability.xml included in 3.6.0 and I think I understand everything:|
* EVENT_LOG_FILE / EVENT_LOG_STDOUT contains high-level Virgo events
* SIFTED_LOG_FILE contains per-application logs, including both Virgo- and application-generated messages
* LOG_FILE contains all log messages from all applications, including both Virgo- and application-generated messages
The sifted logs are separated out based on the MDC applicationName value, which is set by Virgo for each bundle. The problem I'm seeing is that this doesn't seem to be set until after bundle startup has completed. So instead of seeing all my application's messages in logs/myApp/log.log, it's split: messages generated during bundle startup end up in logs/virgo-server/log.log, and my application log only has messages starting from after startup has completed.
Is this intended behavior? It seems only natural that you'd want to have all the application messages in one file, and having all startup messages land in the virgo-server log could make debugging difficult. Is there a trick I'm missing? Thanks.
Powered by FUDForum
. Page generated in 0.02266 seconds