• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

WebLogic with log4j

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic