You can do something similar as Seam is doing.
Transparent log injection with built-in message lookup and formating.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990389#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...