Hi
 I am facing a strange problem
 1) My log4j jar is in java/lib directory and is loaded by bootstrap loader
2) My log4j.xml is loaded properly
 The log4j.log file is created, but the file remains empty
I do not get any errors/exceptions in SystemOut.log / SystemErr.log
 except
I see this one in SystemErr.log
log4j:ERROR Servlet context [default] could not be found.
 (Looks like log4j sandbox stuff, but i cannot file any class in my code 
that has this, it means portal server is using it internally)
 I am trying to use FileSystem logging
  <appender name="dbglog" class="com.ibm.e2e.log.CompositeRollingAppender">
<param name="File" value="../PortalServer/log/log4j.log" />
<layout class="com.ibm.e2e.log.GWAPatternLayout">
<param name="ConversionPattern" value="[WBI WorkFlow Application] [%C{1}.%M] 
[%d{MM/dd HH:mm:ss}] [%p] [%j] %m%n" />
</layout>
</appender>
 public class CompositeRollingAppender extends org.apache.log4j.FileAppender{
................
  Now the interesting part is
there are two server instances (and hence two jvms) that use the same set of 
classes but different log4j.xml
 server1 and WebSphere_Portal
 lo4j logging is fine in first jvm (server1)
 but in the portal server instance, the log file remains empty
 Please help me figure out what is wrong !
 Kalpeshkumar Soni

Reply via email to