This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
jQuery in Action, 2nd edition
subject: WebLogic with log4j
Similar Threads
Correct way of ejb-link
EJB 2.0 value larger than specified precision allows for this column
unable to recognize jndi name when using myeclipse3.8.3
failed to unmarshal cookie
CMP findByPrimaryKey() - conversion error