logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

RE: Problems with DailyRollingFileAppender: msg#00052

apache.logging.log4cxx.user

Subject: RE: Problems with DailyRollingFileAppender

Thanks! I'm now using the strftime notation with no trouble. I'm also using DailyRollingFileAppender, it still doesn't use the format exactly as i declare it, but at leat it works :D


-----Original Message-----
From: Curt Arnold [mailto:carnold@xxxxxxxxxx]
Sent: terça-feira, 23 de Novembro de 2004 4:36
To: Log4CXX User
Subject: Re: Problems with DailyRollingFileAppender


DailyRollingFileAppender has been deprecated in log4j for quite a
while.  The 0.9.7 implementation has problems and I have removed it
from the CVS and will not appear in 0.9.8.  The recommended replacement
is RollingFileAppender with a time-based strategy, however I have not
confirmed that log4cxx is feature equivalent with the log4j
implementation.

0.9.7 does not support java.text.SimpleDateFormat pattern strings
instead it uses strftime format strings.  The current CVS supports
SimpleDateFormat pattern strings and strftime format strings for
compatibility.  The 0.9.8 implementation uses APR's strftime which
doesn't support %Q for milliseconds.

I'm finally back home and hope can finish off the work for 0.9.8 in the
next few days.


On Nov 22, 2004, at 4:16 AM, paulo.albuquerque@xxxxxxxxx wrote:

> Hello!
>
> I'm recently converted a project i'm working on to use log4cxx. I'm
> writing a spam filter on Win32 but aiming at being cross platform.
>
> I have used RollingFileAppender with no problems, but if i try to
> setup a DailyRollingFileAppender the application hangs. here's my
> property file:
>
> log4j.rootLogger=DEBUG, R
> log4j.appender.R=org.apache.DailyRollingFileAppender
> log4j.appender.R.File=/junk/JunkFilter.log
> log4j.appender.R.DatePattern='.'yyyy-MM-dd
> log4j.appender.R.layout=org.apache.log4j.PatternLayout
> log4j.appender.R.layout.ConversionPattern=%5p %d %c %m%n
>
> Is this broken? Also, i don't know if it's related, but i can't format
> dates in the pattern layout (something like  %d{HH:mm:ss,SSS} for
> instance doesn't work). And if I use simply %d, it gives me something
> like this output: "2004-11-19 17:40:15,%" the "SSS" part of the
> default date format is displayed as "%". So i think the format is not
> being interpreted correctly. I hope someone can help me, or at least
> give some directions to try to correct this.
>
> Thanks in advance,
>
> Paulo Albuquerque
>
>
>
> AVISO
> Esta mensagem e todos os seus anexos poderá conter informação
> confidencial para uso exclusivo do destinatário. Se a recebeu
> indevidamente, elimine-a por favor e informe o emissor. Obrigado.
>
> DISCLAIMER
> This e-mail and attachments may contain confidential information for
> exclusive use of its recipient. If you have received this e-mail in
> error, please delete it immediately and notify the sender. Thank You.
>


AVISO
Esta mensagem e todos os seus anexos poderá conter informação confidencial para uso exclusivo do destinatário. Se a recebeu indevidamente, elimine-a por favor e informe o emissor. Obrigado.

DISCLAIMER
This e-mail and attachments may contain confidential information for exclusive use of its recipient. If you have received this e-mail in error, please delete it immediately and notify the sender. Thank You.


<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo