logo       

RE: A design problem!: msg#00001

Subject: RE: A design problem!
Ken,

Would it be feasible to write to a (SQL) database appender? Later, you would
simply query the results for each IP address as needed, instead of forcing
the sorting of log records at the time that they are logged.

I'm very new to log4cxx so I don't really know how much effort would be
required, but if it were me I think I'd want a general solution that
offloads the sorting and processing of individual log records until someone
(me?) actually requests them.

Anyway, it's food for thought.

Cheers,
~Jeff D.


-----Original Message-----
From: Ken [mailto:yongkwai@xxxxxxxxx] 
Sent: Monday, October 31, 2005 6:27 PM
To: Log4CXX User
Subject: Re: A design problem!

Hello,
    Currently, My program have 1 thread deal with all clients request, have
only one appender with "setFile" call changes the log file for each client
request. But the problem is when I enable the log, the cpu usage is a little
high, disable the log everything is ok. So I think "setFile" call will cause
file frequently opened & closed, will this elevate the cpu usage?
     Maarten's NDC suggestion is what I thought before. The problem is each
client will have a series of request, each of them will last variable time.
So NDC may overlap the log content. Create many appender just like Thomas
said will challenge the OS limit. Of course use awk, sed, Excel are the best
and easy solutions, but for some reason we only can show the log file to
related people with their part. I will study use awk or Excel to achieve
this later. However I still like write to different files. Thanks.

--
Ken




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

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | 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