[jboss-user] [EJB/JBoss] - Log4j problem

bharaneetharan do-not-reply at jboss.com
Wed Dec 3 04:47:43 EST 2008


hi,

       Iam using Jboss 4.0.2 App server and using EJB 2. I have written a simple EJB and used log 4j for debugging. I added log4j-1.2.11.jar in the build path. the log4j.xml is as follows

<log4j:configuration>
  | <appender name="stdout" class="org.apache.log4j.DailyRollingFileAppender">
  | <param name="File" value="c:/Log4jTestlog.log" />
  | <param name="DatePattern" value="'.'yyyy-MM-dd" />
  | <layout class="org.apache.log4j.PatternLayout">
  | <param name="ConversionPattern" value="%d %p %t %c - %m%n"/>
  | </layout>
  | </appender>
  | <root>
  | <priority value="debug"></priority>
  | <appender-ref ref="stdout"/>
  | </root>
  | </log4j:configuration>
whenever i run the ejb and made a call from a stand alone client, the application works very fine. but logging is not happening. even the file (Log4jTestlog.log) is not getting created. I dont know why. 

But if i use the same log4j.xml for a console application it works very fine. whether any special configurations to be done for Jboss?

Please help me to solve this.


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

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



More information about the jboss-user mailing list