• 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

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: 14006
233
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
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!