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

Log4j configuation

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have installed and configured jforum 2.1.8 on my local machine. how can i configure the log4j to write the log if any error comes.

thanks in advance.
[originally posted on jforum.net by rrkumar]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A lot depends on your environment. jForum tries to set up the log4j environment using the log4j.xml file in the WEB-INF directory. However, if your web app server uses it to (like Tomcat), it will "ignore" the setup because it has been initialized at a higher level.

This means that the jforum log4j message will go into your servers general log. If you want to filter them into a different fle, you will probably have to modify the servers main log4j config file (either log4j.xml or log4j.properties).

Hope this helps, configuring log4j is sometimes more of an art than a science....
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It would be great helpful for me if you explain me how to achive with tomcat webserver or any other information, so that i can do.

Regards,
Ravi. R
[originally posted on jforum.net by rrkumar]
 
There's a city wid manhunt for this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic