File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebLogic with log4j

 
Ganapathi Srinivasan
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We are trying log4j as the logger API for our development in Weblogic 6.0
I had put the log4j jar files in weblogic classpath. when i try to load the configuration details thru

I get an exception

Can anyone tell me where to put this config file for log4j PropertyConfigurator to look up and load???
Thanx
Ganp.

[This message has been edited by Ganapathi Raman (edited August 08, 2001).]
 
hemraj singh
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you have an answer already and I assume you are trying to start Log4J as server., but just in case you don't you can try this
you need to create a log4J properties file you can get one shipped with Log4J using LogFactor5. or create your own
log4j.rootCategory=, A1

# Appender A1 writes to the file "Test.Log".
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=Test.log
# Truncate 'Test' if it aleady exists.
log4j.appender.A1.Append=false
# Appender A1 uses the PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-5r %-5p [%t] %c{2} - %m%n
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic