On 10/12/2009, at 3:38 AM, Kristian Rosenvold wrote: > My personal short-list on MNG-3004 now only contains 1 thing, getting > order on log output. I need some help on this one; > > It seems like there's two sensible ways to handle this > > A) Intercept plexus "Logger" and sort according to calling thread. > B) Intercept System.out/err and sort according to calling thread. > > I know B is going to work, but I really think A is a nicer option. But > plexus scares me (it reminds me of a teenager, capable of throwing fits > for no understandable reason and providing no explanation). > > Assuming I am able to proxy the plexus logger, it should be able to > capture output of all plugins too, right ? Anyone have any > examples/explanation of how to proxy the logger ? > > Anyone have any thoughts/preferences on this ?
You'll want something that works across all logging systems, since I'm sure some people use c-l, some slf4j, some plexus logging directly, and even some on System.out / System.err. I would start by doing it in MavenLoggerManager and see what else needs to be dragged in. I think it's important to ensure all the logs are captured independently, regardless of how they are output to the user so that, for example, IDE integration could show several panels for the concurrent build output. > > Kristian > > P.S: The last time I tried to run with the integration tests they > worked. Assuming i ran them correctly, that is. Maybe a good idea to > update > http://maven.apache.org/guides/development/guide-building-m2.html with > descriptions on how to do run them correctly ? > Hmm, there used to be a README in the core-integration-testing module. "mvn clean install -Prun-its" from the root of core-integration-testing is the simplest instructions for running against the currently installed Maven, but there are several different ways depending on your workflow that might be more suitable (eg, running a subset of tests against an installed maven, or running the suite against a built-but-not-yet-installed maven). Cheers, Brett -- Brett Porter [email protected] http://brettporter.wordpress.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
