[jboss-user] [JBoss Seam] - Re: Programmatic Log4j Configuration

barthjj do-not-reply at jboss.com
Wed Dec 12 12:03:01 EST 2007


Thanks for the link.  I looked at the code there and found out what my problem was.  I was using PropertyConfigurator instead of DOMConfigurator.  Here's the working code
@Name("configLogger")
  | @Startup
  | @Scope(APPLICATION)
  | public class ConfigLog4j{
  | 
  | 	@Create
  | 	public void init() {
  | 		DOMConfigurator.configure("c:/log4j.xml");
  | 	}
  | }

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

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



More information about the jboss-user mailing list