• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

oc4j, log4j and struts

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple aplication and i want to use Struts logging feature using commons-logging and log4j on oc4j container. I think that log4j is running correctly but i dont know how to turn on STRUTS logging (I have read that struts can log some useful information: http://javaboutique.internet.com/tutorials/Struts2/jsp-pages.html) I have log4j-1.2.8.jar and commons-logging.jar in web-inf\lib. Do i need some configuration of struts to start logging?
 
Marshal
Posts: 15630
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you are using Struts 1.1, you will use the Jakarta Commons Logging framework configuration. See the following for more details:

http://struts.apache.org/userGuide/configuration.html#config_logging
http://struts.apache.org/userGuide/building_controller.html#logging
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic