[jboss-user] [JBoss Seam] - How to use log inside interceptor ?
DiegoCoronel
do-not-reply at jboss.com
Fri Dec 21 12:42:11 EST 2007
this probably isnt hard, but i didnt find any way to get seam log, anyone can help me?
| @Interceptor
| public class LogInterceptor {
|
| @Logger
| private static Log log;
|
| @AroundInvoke
| public Object checkLoggedIn(InvocationContext invocation) throws Exception {
| try {
| log.info("Executando operacao antes");
| return invocation.proceed();
| }
| finally {
| log.info("Executando operacao depois");
| }
| }
|
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115068#4115068
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115068
More information about the jboss-user
mailing list