[jboss-user] [JBoss Seam] - Re: Custom Logging in Seam

gavin.king@jboss.com do-not-reply at jboss.com
Thu Jul 26 17:16:56 EDT 2007


"matt.drees" wrote : Here's another (probably bad) idea.
  | 
  | Create a Seam interceptor that looks for a @Logger field and replaces the default Log instance with yours.
  | 
  | Of course, your stack traces are that much bigger and maybe method calls are a tiny bit slower, and I think you might have to annotate all of your classes.  But maybe there are ways around that.

Yes, this is possible using an @PostConstruct interceptor.

Someday we really need to get around to allowing interceptors to be declared in components.xml, to save the need for an annotation. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068021#4068021

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068021



More information about the jboss-user mailing list