|
|
Sponsor |
Re: Can I have time stamp in log file name?: msg#00061apache.logging.log4cxx.user
AFAICT, the closest to what you are looking for would be the DailyRolingFileAppender - it automatically renames old example.log to example.log.date format at midnight, when the new day file is created. But, then there are few (significant) catches - there is no option to automatically delete old files (really a pain). Also, it has been deprecated in log4j (in favor of using strategy design pattern, I believe), so I guess it will go away in log4cxx as well. Alex "Ambarish Mitra" <ambarish_mitra@xxxxxxxxxxxxxxxx> wrote on 02/21/2005 08:07:49 AM: > Hi, > > Can I have time stamp in log file name? > > To elaborate, if my entries in the property files are: > ... > log4j.appender.R=org.apache.log4j.RollingFileAppender > log4j.appender.R.File=../logs/example.log > .. > > Now, I want that instead of log file name: example.log, I want the name as > example.log.<time> of creation, is there any way to accomplish this? > > -Ambarish. > > > [attachment "winmail.dat" deleted by Aleksandar Fabijanic/Maintenance/NSB]
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Can I have time stamp in log file name?, Ambarish Mitra |
|---|---|
| Next by Date: | RE: Can I have time stamp in log file name?, Jess . Morecroft |
| Previous by Thread: | Can I have time stamp in log file name?, Ambarish Mitra |
| Next by Thread: | No appenders could be found for logger, Ambarish Mitra |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|