You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Laurie Harper <la...@holoweb.net> on 2008/01/23 17:37:15 UTC

Re: FW: DailyRollingFileAppender for a Struts Web Application using WAS 6.0 and Struts 1.1

I think that's more of a Log4j configuration question (i.e. how to 
configure a Log4j appender dynamically during webapp startup). As such, 
you might be better off asking on a Log4j-specific list.

L.

Paula McDowell wrote:
> Hi, all.  Is there a way to set a DailyRollingFileAppender outside of a log4j.properties in a struts application?  My company’s website is running in a mainfame environment with multiple WAS instances for each region ie., development, test, and production.   This type of architecture requires my log file to be environment specific i.e. /temp/dev/log or /temp/prod/log.  I could have a log4j.properties for each environment, but don’t really feel good about that approach.
> 
> 
> 
> I’ve created a StartUp plugin that will create a log file using a variable defined as a WAS Resource Environment Entry.  The plugin reads the variable and thus creates and names the log file appropriately.  I have yet to figure out how to instantiate a DailyRollingFileAppender that will roll this file and create a new log at the beginning of each day.
> 
> 
> 
> Thanks,
> 
> 
> 
> Paula
> 
> 
> Private and confidential as detailed here. If you cannot access hyperlink, please e-mail sender.
> 
> 
> _________________________________________________________________
> Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
> http://www.msnmobilefix.com/Default.aspx



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org