This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes WebLogic with log4j Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "WebLogic with log4j" Watch "WebLogic with log4j" New topic
Author

WebLogic with log4j

Ganapathi Srinivasan
Ranch Hand

Joined: Apr 18, 2001
Posts: 41
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

Joined: Feb 01, 2004
Posts: 1
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
 
jQuery in Action, 2nd edition
 
subject: WebLogic with log4j