Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "WebLogic with log4j" Watch "WebLogic with log4j" New topic

WebLogic with log4j

Ganapathi Srinivasan
Ranch Hand

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

[This message has been edited by Ganapathi Raman (edited August 08, 2001).]
hemraj singh

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".
# Truncate 'Test' if it aleady exists.
# Appender A1 uses the PatternLayout.
log4j.appender.A1.layout.ConversionPattern=%-5r %-5p [%t] %c{2} - %m%n
Consider Paul's rocket mass heater.
subject: WebLogic with log4j