• 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 configuration

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i have a jar file which i need to deploy in a web app. the web app (3rd party) already have log4 configuration. can i have log4j.properties in my jar and save the logs in different directory ? since the jar is in the web app, im a little confused about which log file it is going to fetch.. appreciate any help !!

thanks,
rajeev
 
Marshal
Posts: 28226
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your question is not clear. Presumably if the web-app is already using log4j then it already has a configuration file.

You say you have to deploy a jar file in this web-app. I don't know what that means. Perhaps you're including some extra functionality or something. But whatever it means, if code from that jar file is going to be executed, and if it wants to use log4j, then it's going to use the configuration file which is already there. Only one configuration file will be used -- I suppose that was the main point of your question, wasn't it?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic