• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Log4J parses the props file, but does not affect anything

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I call this within public class Log4JInit extends HttpServlet {
init() method


Everything goes fine, I read the properties parse it, assign properties.
But still I cannot get it work.
For example I created some Appenders, they are not working.

I even do not get any errors, exceptions.

The thing is that, probably Log4J got initialised earlier and just ignores my init servlet.

in web.xml I have:


<load-on-startup>0</load-on-startup>
is the smallest value among other servlets.


[ March 14, 2006: Message edited by: Yilmaz Mete ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK,
I put it under struts-config.xml. Works!!!

reply
    Bookmark Topic Watch Topic
  • New Topic