RE: Problems with DailyRollingFileAppender

2004-11-23 Thread paulo . albuquerque
Title: 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:[EMAIL PROTECTED]]
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, [EMAIL PROTECTED] 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='.'-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. 





Re: Problems with DailyRollingFileAppender

2004-11-23 Thread Curt Arnold
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, [EMAIL PROTECTED] 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='.'-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.

 


Problems with DailyRollingFileAppender

2004-11-22 Thread paulo . albuquerque
Title: Problems with DailyRollingFileAppender





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='.'-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. 





Re: Problems with DailyRollingFileAppender

2004-11-19 Thread renny . koshy

Well.. I think that's a philosophical question :-)  But I guess that's a good idea.  Though given the ease of using cron + shell script... I don't kow if anyone would want to write/test/maintain something like that.

Renny Koshy
President & CEO


RUBIX Information Technologies, Inc.
www.rubixinfotech.com






[EMAIL PROTECTED]
11/19/2004 02:27 PM
Please respond to "Log4CXX User"

        
        To:        "Log4CXX User" 
        cc:        
        Subject:        Re: Problems with DailyRollingFileAppender



Same here. But I want to get rid of it. Logging library should be smart enough to do it for me 


[EMAIL PROTECTED] wrote on 11/19/2004 02:22:37 PM:

> 
> Our logs are kept for many days for several reasons... but we have 
> MANY processes/jobs that are logging many files all over the 
> server... and we have a cleanup job that purges out old logs from 
> all of our prcesses.  It runs daily at some point in time and does the cleanup
> 
> Renny Koshy
> President & CEO
> 
> 
> RUBIX Information Technologies, Inc.
> www.rubixinfotech.com 
> 

> 
> [EMAIL PROTECTED] 
> 11/19/2004 02:20 PM 
> Please respond to "Log4CXX User" 
> 
>         
>         To:        "Log4CXX User"  
>         cc:         
>         Subject:        Re: Problems with DailyRollingFileAppender 
> 
> 
> 
> 
> 
> Renny, 
> 
> How do you purge DailyRollingFileAppender files? 
> Once upon a time, I solicited extending it in a similar fashion like
> RollingFileAppender, but there was no much interest since log4j has 
> (or will) deprecated it. 
> 
> +++
> Aleksandar Fabijanic
> Level 2 Automation Engineer 
> Nucor Steel Berkeley - Beam Mill
> Phone: 843.336.6678
> Fax:      843.336.6072
> --- 
> 
> [EMAIL PROTECTED] wrote on 11/19/2004 01:24:52 PM:
> 
> > 
> > ##
> > # Logging properties
> > ##
> > log4j.rootLogger=DEBUG, logfile, console 
> > 
> > ... 
> > 
> > log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
> > log4j.appender.logfile.fileName=SmartACD.log
> > log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
> > log4j.appender.logfile.layout.ConversionPattern=%d{ISO8601} %-5p %
> c %x - %m%n
> > log4j.appender.logfile.ImmediateFlush=true
> > log4j.appender.logfile.DatePattern=.%Y-%m-%d 
> > 
> > give output of the form: 
> > 
> > 2004-11-19 00:00:00,373 INFO  Statistics  - Queue,Total Ops,Idle 
> > Ops,Calls Waiting,Longest Call,M Calls,M Calls Anwered,M Calls 
> > Abandoned,M ASA,M Min SA,M Max SA,M ACPT,M Min CPT,M Max CPT,H 
> > Calls,H Calls Anwered,H Calls Abandoned,H ASA,H Min SA,H Max SA,H 
> > ACPT,H Min CPT,H Max CPT,D Calls,D Calls Anwered,D Calls Abandoned,D
> > ASA,D Min SA,D Max SA,D ACPT,D Min CPT,D Max CPT,Aba 0-10,Aba 11-20,
> > Aba 21-30,Aba 31-40,Aba 41-50,Aba 51-60,Aba 60+,CPT 0-10,CPT 11-20,
> > CPT 21-30,CPT 31-40,CPT 41-50,CPT 51-60,CPT 60+
> > 2004-11-19 00:00:00,460 INFO  Statistics  - Reject,0,0,0,0,0,0,0,0,
> > 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,0,0,0,0,0, 
> > 2004-11-19 00:00:00,467 INFO  Statistics  - Forward to RUBIX,0,0,0,
> > 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
> > 0,,0,0,0,0,0,0,0,
> > 2004-11-19 00:00:00,563 DEBUG ACD ServiceCalls(SUPER) - No calls to service
> > 
> > 
> > Renny Koshy
> > President & CEO
> > 
> >  
> > RUBIX Information Technologies, Inc.
> > www.rubixinfotech.com 
> > 
> 
> > 
> > [EMAIL PROTECTED] 
> > 11/19/2004 12:48 PM 
> > Please respond to "Log4CXX User" 
> > 
> >         
> >         To:        log4cxx-user@logging.apache.org 
> >         cc:         
> >         Subject:        Problems with DailyRollingFileAppender 
> > 
> > 
> > 
> > 
> > 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
>

Re: Problems with DailyRollingFileAppender

2004-11-19 Thread FabijanicA

Same here. But I want to get rid of
it. Logging library should be smart enough to do it for me


[EMAIL PROTECTED] wrote on 11/19/2004
02:22:37 PM:

> 
> Our logs are kept for many days for several reasons... but we have

> MANY processes/jobs that are logging many files all over the 
> server... and we have a cleanup job that purges out old logs from

> all of our prcesses.  It runs daily at some point in time and
does the cleanup
> 
> Renny Koshy
> President & CEO
> 
> 
> RUBIX Information Technologies, Inc.
> www.rubixinfotech.com 
> 

> 
> [EMAIL PROTECTED] 
> 11/19/2004 02:20 PM 
> Please respond to "Log4CXX User" 
> 
>         
>         To:        "Log4CXX
User"  
>         cc:         
>         Subject:        Re:
Problems with DailyRollingFileAppender
> 
> 
> 
> 
> 
> Renny, 
> 
> How do you purge DailyRollingFileAppender files? 
> Once upon a time, I solicited extending it in a similar fashion like
> RollingFileAppender, but there was no much interest since log4j has

> (or will) deprecated it. 
> 
> +++
> Aleksandar Fabijanic
> Level 2 Automation Engineer 
> Nucor Steel Berkeley - Beam Mill
> Phone: 843.336.6678
> Fax:      843.336.6072
> --- 
> 
> [EMAIL PROTECTED] wrote on 11/19/2004 01:24:52 PM:
> 
> > 
> > ##
> > # Logging properties
> > ##
> > log4j.rootLogger=DEBUG, logfile, console 
> > 
> > ... 
> > 
> > log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
> > log4j.appender.logfile.fileName=SmartACD.log
> > log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
> > log4j.appender.logfile.layout.ConversionPattern=%d{ISO8601} %-5p
%
> c %x - %m%n
> > log4j.appender.logfile.ImmediateFlush=true
> > log4j.appender.logfile.DatePattern=.%Y-%m-%d 
> > 
> > give output of the form: 
> > 
> > 2004-11-19 00:00:00,373 INFO  Statistics  - Queue,Total
Ops,Idle 
> > Ops,Calls Waiting,Longest Call,M Calls,M Calls Anwered,M Calls

> > Abandoned,M ASA,M Min SA,M Max SA,M ACPT,M Min CPT,M Max CPT,H

> > Calls,H Calls Anwered,H Calls Abandoned,H ASA,H Min SA,H Max
SA,H 
> > ACPT,H Min CPT,H Max CPT,D Calls,D Calls Anwered,D Calls Abandoned,D
> > ASA,D Min SA,D Max SA,D ACPT,D Min CPT,D Max CPT,Aba 0-10,Aba
11-20,
> > Aba 21-30,Aba 31-40,Aba 41-50,Aba 51-60,Aba 60+,CPT 0-10,CPT
11-20,
> > CPT 21-30,CPT 31-40,CPT 41-50,CPT 51-60,CPT 60+
> > 2004-11-19 00:00:00,460 INFO  Statistics  - Reject,0,0,0,0,0,0,0,0,
> > 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,0,0,0,0,0,

> > 2004-11-19 00:00:00,467 INFO  Statistics  - Forward
to RUBIX,0,0,0,
> > 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
> > 0,,0,0,0,0,0,0,0,
> > 2004-11-19 00:00:00,563 DEBUG ACD ServiceCalls(SUPER) - No calls
to service
> > 
> > 
> > Renny Koshy
> > President & CEO
> > 
> >  
> > RUBIX Information Technologies, Inc.
> > www.rubixinfotech.com 
> > 
> 
> > 
> > [EMAIL PROTECTED] 
> > 11/19/2004 12:48 PM 
> > Please respond to "Log4CXX User" 
> > 
> >         
> >         To:        log4cxx-user@logging.apache.org

> >         cc:         
> >         Subject:        Problems
with DailyRollingFileAppender 
> > 
> > 
> > 
> > 
> > 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='.'-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: 
> >   
> >  INFO 2004-11-19 17:40:15,% MailFilter 127.0.0.1 [EMAIL PROTECTED]
> > Con

Re: Problems with DailyRollingFileAppender

2004-11-19 Thread renny . koshy

Our logs are kept for many days for several reasons... but we have MANY processes/jobs that are logging many files all over the server... and we have a cleanup job that purges out old logs from all of our prcesses.  It runs daily at some point in time and does the cleanup

Renny Koshy
President & CEO


RUBIX Information Technologies, Inc.
www.rubixinfotech.com






[EMAIL PROTECTED]
11/19/2004 02:20 PM
Please respond to "Log4CXX User"

        
        To:        "Log4CXX User" 
        cc:        
        Subject:        Re: Problems with DailyRollingFileAppender



Renny, 

How do you purge DailyRollingFileAppender files? 
Once upon a time, I solicited extending it in a similar fashion like RollingFileAppender, but there was no much interest since log4j has (or will) deprecated it. 

+++
Aleksandar Fabijanic
Level 2 Automation Engineer 
Nucor Steel Berkeley - Beam Mill
Phone: 843.336.6678
Fax:      843.336.6072
--- 

[EMAIL PROTECTED] wrote on 11/19/2004 01:24:52 PM:

> 
> ##
> # Logging properties
> ##
> log4j.rootLogger=DEBUG, logfile, console 
> 
> ... 
> 
> log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.logfile.fileName=SmartACD.log
> log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
> log4j.appender.logfile.layout.ConversionPattern=%d{ISO8601} %-5p %c %x - %m%n
> log4j.appender.logfile.ImmediateFlush=true
> log4j.appender.logfile.DatePattern=.%Y-%m-%d 
> 
> give output of the form: 
> 
> 2004-11-19 00:00:00,373 INFO  Statistics  - Queue,Total Ops,Idle 
> Ops,Calls Waiting,Longest Call,M Calls,M Calls Anwered,M Calls 
> Abandoned,M ASA,M Min SA,M Max SA,M ACPT,M Min CPT,M Max CPT,H 
> Calls,H Calls Anwered,H Calls Abandoned,H ASA,H Min SA,H Max SA,H 
> ACPT,H Min CPT,H Max CPT,D Calls,D Calls Anwered,D Calls Abandoned,D
> ASA,D Min SA,D Max SA,D ACPT,D Min CPT,D Max CPT,Aba 0-10,Aba 11-20,
> Aba 21-30,Aba 31-40,Aba 41-50,Aba 51-60,Aba 60+,CPT 0-10,CPT 11-20,
> CPT 21-30,CPT 31-40,CPT 41-50,CPT 51-60,CPT 60+
> 2004-11-19 00:00:00,460 INFO  Statistics  - Reject,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,0,0,0,0,0, 
> 2004-11-19 00:00:00,467 INFO  Statistics  - Forward to RUBIX,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
> 0,,0,0,0,0,0,0,0,
> 2004-11-19 00:00:00,563 DEBUG ACD ServiceCalls(SUPER) - No calls to service
> 
> 
> Renny Koshy
> President & CEO
> 
> 
> RUBIX Information Technologies, Inc.
> www.rubixinfotech.com 
> 

> 
> [EMAIL PROTECTED] 
> 11/19/2004 12:48 PM 
> Please respond to "Log4CXX User" 
> 
>         
>         To:        log4cxx-user@logging.apache.org 
>         cc:         
>         Subject:        Problems with DailyRollingFileAppender 
> 
> 
> 
> 
> 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='.'-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: 
>   
>  INFO 2004-11-19 17:40:15,% MailFilter 127.0.0.1 [EMAIL PROTECTED]
> ContentBlock viagra badmail 
> the "SSS" part of the 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. 



Re: Problems with DailyRollingFileAppender

2004-11-19 Thread FabijanicA

Renny,

How do you purge DailyRollingFileAppender
files?
Once upon a time, I solicited extending
it in a similar fashion like RollingFileAppender, but there was no much
interest since log4j has (or will) deprecated it.

+++
Aleksandar Fabijanic
Level 2 Automation Engineer 
Nucor Steel Berkeley - Beam Mill
Phone: 843.336.6678
Fax:      843.336.6072
---

[EMAIL PROTECTED] wrote on 11/19/2004
01:24:52 PM:

> 
> ##
> # Logging properties
> ##
> log4j.rootLogger=DEBUG, logfile, console 
> 
> ... 
> 
> log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
> log4j.appender.logfile.fileName=SmartACD.log
> log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
> log4j.appender.logfile.layout.ConversionPattern=%d{ISO8601} %-5p %c
%x - %m%n
> log4j.appender.logfile.ImmediateFlush=true
> log4j.appender.logfile.DatePattern=.%Y-%m-%d 
> 
> give output of the form: 
> 
> 2004-11-19 00:00:00,373 INFO  Statistics  - Queue,Total
Ops,Idle 
> Ops,Calls Waiting,Longest Call,M Calls,M Calls Anwered,M Calls 
> Abandoned,M ASA,M Min SA,M Max SA,M ACPT,M Min CPT,M Max CPT,H 
> Calls,H Calls Anwered,H Calls Abandoned,H ASA,H Min SA,H Max SA,H

> ACPT,H Min CPT,H Max CPT,D Calls,D Calls Anwered,D Calls Abandoned,D
> ASA,D Min SA,D Max SA,D ACPT,D Min CPT,D Max CPT,Aba 0-10,Aba 11-20,
> Aba 21-30,Aba 31-40,Aba 41-50,Aba 51-60,Aba 60+,CPT 0-10,CPT 11-20,
> CPT 21-30,CPT 31-40,CPT 41-50,CPT 51-60,CPT 60+
> 2004-11-19 00:00:00,460 INFO  Statistics  - Reject,0,0,0,0,0,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,0,0,0,0,0,

> 2004-11-19 00:00:00,467 INFO  Statistics  - Forward to RUBIX,0,0,0,
> 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
> 0,,0,0,0,0,0,0,0,
> 2004-11-19 00:00:00,563 DEBUG ACD ServiceCalls(SUPER) - No calls to
service
> 
> 
> Renny Koshy
> President & CEO
> 
> 
> RUBIX Information Technologies, Inc.
> www.rubixinfotech.com 
> 

> 
> [EMAIL PROTECTED] 
> 11/19/2004 12:48 PM 
> Please respond to "Log4CXX User" 
> 
>         
>         To:        log4cxx-user@logging.apache.org

>         cc:         
>         Subject:        Problems
with DailyRollingFileAppender
> 
> 
> 
> 
> 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='.'-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: 
>   
>  INFO 2004-11-19 17:40:15,% MailFilter 127.0.0.1 [EMAIL PROTECTED]
> ContentBlock viagra badmail 
> the "SSS" part of the 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.


Re: Problems with DailyRollingFileAppender

2004-11-19 Thread renny . koshy

##
# Logging properties
##
log4j.rootLogger=DEBUG, logfile, console

...

log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
log4j.appender.logfile.fileName=SmartACD.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d{ISO8601} %-5p %c %x - %m%n
log4j.appender.logfile.ImmediateFlush=true
log4j.appender.logfile.DatePattern=.%Y-%m-%d

give output of the form:

2004-11-19 00:00:00,373 INFO  Statistics  - Queue,Total Ops,Idle Ops,Calls Waiting,Longest Call,M Calls,M Calls Anwered,M Calls Abandoned,M ASA,M Min SA,M Max SA,M ACPT,M Min CPT,M Max CPT,H Calls,H Calls Anwered,H Calls Abandoned,H ASA,H Min SA,H Max SA,H ACPT,H Min CPT,H Max CPT,D Calls,D Calls Anwered,D Calls Abandoned,D ASA,D Min SA,D Max SA,D ACPT,D Min CPT,D Max CPT,Aba 0-10,Aba 11-20,Aba 21-30,Aba 31-40,Aba 41-50,Aba 51-60,Aba 60+,CPT 0-10,CPT 11-20,CPT 21-30,CPT 31-40,CPT 41-50,CPT 51-60,CPT 60+
2004-11-19 00:00:00,460 INFO  Statistics  - Reject,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,0,0,0,0,0,
2004-11-19 00:00:00,467 INFO  Statistics  - Forward to RUBIX,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,,0,0,0,0,0,0,0,
2004-11-19 00:00:00,563 DEBUG ACD ServiceCalls(SUPER) - No calls to service


Renny Koshy
President & CEO


RUBIX Information Technologies, Inc.
www.rubixinfotech.com






[EMAIL PROTECTED]
11/19/2004 12:48 PM
Please respond to "Log4CXX User"

        
        To:        log4cxx-user@logging.apache.org
        cc:        
        Subject:        Problems with DailyRollingFileAppender


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='.'-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:
 
 INFO 2004-11-19 17:40:15,% MailFilter 127.0.0.1 [EMAIL PROTECTED] ContentBlock viagra badmail
the "SSS" part of the 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. 





Problems with DailyRollingFileAppender

2004-11-19 Thread paulo . albuquerque



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.DailyRollingFileAppenderlog4j.appender.R.File=/junk/JunkFilter.loglog4j.appender.R.DatePattern='.'-MM-dd
log4j.appender.R.layout=org.apache.log4j.PatternLayoutlog4j.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:
 
 INFO 
2004-11-19 17:40:15,% MailFilter 127.0.0.1 [EMAIL PROTECTED] ContentBlock 
viagra badmail
the "SSS" part of 
the 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.