Re: [JBoss-user] log4j and jboss: where is log4j.properties?
Sorry to glom onto someone else's thread, but I have a related question. After setting up your own category, as below, everything works nicely for my ejbs but Servlets under Jetty don't seem to see the elevated priority level when I jack my com.xxx. priority up to DEBUG. All output from my servlets still only show at INFO and higher as if they are being filtered only by JBoss category and priority levels. Any way to get servlet output at DEBUG level? Thanks. saroj kumar wrote: Hi, Sorry for delayed reply. You need to create a Category like : category name=com.xxxcxc.y --- Your package hier. priority value=DEBUG/ -- the level of logging you want to enable /category --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] log4j and jboss: where is log4j.properties?
Check your appender. It probably has its threshold set to INFO. Either remove the threshold or create a new appender with no threshold level set and reference it from your category definition: E.g.: appender name=SKNT_CONSOLE class=org.apache.log4j.ConsoleAppender param name=Target value=System.out/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] %m%n/ /layout /appender category name=org.jboss.security.srp priority value=TRACE class=org.jboss.logging.XLevel/ appender-ref ref=SKNT_CONSOLE/ /category Sebastian -Original Message- From: Aaron Metzger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] log4j and jboss: where is log4j.properties? Sorry to glom onto someone else's thread, but I have a related question. After setting up your own category, as below, everything works nicely for my ejbs but Servlets under Jetty don't seem to see the elevated priority level when I jack my com.xxx. priority up to DEBUG. All output from my servlets still only show at INFO and higher as if they are being filtered only by JBoss category and priority levels. Any way to get servlet output at DEBUG level? --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] log4j and jboss: where is log4j.properties?
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 --- 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
Re: [JBoss-user] log4j and jboss: where is log4j.properties?
Thanks first! 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