This content has been marked as final.
Show 5 replies
-
1. Re: JBoss Logging and JBoss AOP
alesj Dec 1, 2006 4:43 AM (in response to kabirkhan)You can do something similar as Seam is doing.
Transparent log injection with built-in message lookup and formating. -
2. Re: JBoss Logging and JBoss AOP
adrian.brock Dec 1, 2006 8:31 AM (in response to kabirkhan)"kabir.khan@jboss.com" wrote:
The reason logging is not included is from before my time.
IIRC the issue was just that users would need to include log4j when using aopc. -
3. Re: JBoss Logging and JBoss AOP
starksm64 Dec 1, 2006 11:17 AM (in response to kabirkhan)Hopefully that is resolved with the separation of the logging spi from jdk/log4j impls.
-
4. Re: JBoss Logging and JBoss AOP
kabirkhan May 3, 2007 2:10 PM (in response to kabirkhan)"scott.stark@jboss.org" wrote:
Hopefully that is resolved with the separation of the logging spi from jdk/log4j impls.
I'm repackaging AOP for the next 2.0.alpha, and am putting in the jars for jboss logging. I am in doubt about what to ship with though. The minimum needed to run is the jboss-logging-spi.jar, which uses the NullLoggerPlugin, so there is no logging.
In order to have any meaningful logging we would need to add jboss-logging-log4j.jar and log4j.jar. Are the any reasons why these should NOT be part of the aop download?
This mainly applies to people running aop standalone, in the app server all the necessary bits and pieces are obviously present. -
5. Re: JBoss Logging and JBoss AOP
kabirkhan May 15, 2007 8:59 AM (in response to kabirkhan)I have integrated the logging stuff into AOP core. AspectManager.verbose is still the main switch for verbose logging from the AOP core classes.
Rather than doing:Logger logger = Logger.getLogger(SomeClass.class);
DoLogger logger = AOPLogger.getLogger(SomeClass.class);
AOPLogger is a subclass of Logger whose only function is to check if the chosen LoggerPlugin cannot be found, and if so to make sure we use a SystemOutLoggerPlugin I implemented. This prints out everything to System.out regardless of logging level.
So AspectManager.verbose turns on logging, and integrating with log4j allows more fine-grained control over what is logged.