|
|
Choosing A Webhost: |
Re: How create 1 log file for a day?: msg#00024apache.logging.log4cxx.user
Use DailyRollingFileAppender An example configuration would be log4j.rootLogger=ERROR, R log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=${catalina.home}/logs/tomcat.log log4j.appender.R.DatePattern='.'yyyy-MM-dd log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern={%p} %c{2} %x %m%n (Taken from http://raibledesigns.com/wiki/Wiki.jsp?page=Tomcat5Logging ) And see the Javadoc for other options http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFileAppender.html On 8/31/06, val <yuri1000@xxxxxxx> wrote:
-- Why? Because YES!
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | How create 1 log file for a day?, val |
|---|---|
| Next by Date: | Unable to add appender to AsyncAppender, Adams Christian |
| Previous by Thread: | How create 1 log file for a day?, val |
| Next by Thread: | Re: How create 1 log file for a day?, val |
| 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 |