[jboss-as7-dev] manual way to do logging?
Jason T. Greene
jason.greene at redhat.com
Fri Jun 8 14:37:28 EDT 2012
On 6/8/12 3:06 AM, Emmanuel Bernard wrote:
> That's the crux really. I always bitch when I have to add a log message with JBoss logging compared to the good old log4j. But I would not meet the requirements.
>
> See it positively, it's annoying enough to add a log or throw an exception that I do it less often and my code is even more efficient :D
> The other annoying bit is when your log interface is in a common module and you work on a dependent module. This requires full recompilation and I am often bitten by this with method not found exceptions.
We used to have a proxy mode feature for exactly this problem. You would
set a sys prop and it would generate dynamic proxies implementing the
the source code locales. This was quite a bit slower than the compile
generated classes so it was intended to be develop mode only. The idea
was that you just set it in your IDE settings and be done with it.
It turns out it wasnt used very much, and it relied on runtime
annotation retention, so it was killed. If enough people felt it was a
problem though we could revisit that.
What do you think?
--
Jason T. Greene
JBoss AS Lead / EAP Platform Architect
JBoss, a division of Red Hat
More information about the jboss-as7-dev
mailing list