Yes, I noticed that in $JBOSS_HOME/server/default/conf, there is log4j.xml, then you mean, I can use this default properties for my jboss application deployed in $JBOSS_HOME/server/default/deploy?
But my test application run correctly, just say nothing:-), not log to log/server.log. Here is some snippits of my code:
static Logger logger = Logger.getLogger(UserInfoBean.class.getName());
......
logger.debug( "UserInfoBean: entering ejbCreate");
....
You see, very simple.
It seemed that, my looger can not find jboss's log4j.xml. Must I use PropertyConfigrator to load log4j.xml? I don't think so. I just want to use the default one that jboss give me:-). But how to?
Any hints?
Thanks in advance!
saroj kumar ??:
Hi,
You can configure your log4j.xml in JBOSS_HOME\conf
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of linuxman
Sent: Saturday, November 23, 2002 9:40 PM
To: jboss ml
Subject: [JBoss-user] log4j and jboss: where is log4j.properties?
hi,
I want to use apache log4j in my jboss j2ee application, but where should I put log4j.properties? which directory?
thanks in advance!
linuxman
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user