Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Problems with DailyRollingFileAppender: msg#00034

apache.logging.log4cxx.user

Subject: Re: Problems with DailyRollingFileAppender


##########################################################################
# 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



paulo.albuquerque@xxxxxxxxx

11/19/2004 12:48 PM
Please respond to "Log4CXX User"

       
        To:        log4cxx-user@xxxxxxxxxxxxxxxxxx
        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='.'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:
 
 INFO 2004-11-19 17:40:15,% MailFilter 127.0.0.1 forged-mail@xxxxxxxxx ContentBlock viaaaaagra 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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

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