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: Question regarding FileAppender...: msg#00025

apache.logging.log4cxx.user

Subject: Re: Question regarding FileAppender...

log4cxx follows log4j and log4j does not attempt to synchronize file I/O across multiple processes. This is addressed in Chapter 10 of "The complete manual log4j".

Q 10.3 Can multiple Java Virtual Machines log to the same file using log4j?

No, there is no way for log4j to coordinate the access for a system resource, for example a file, between multiple JVMs....

The following FAQ describes the common method of addressing situations where that is necessary by using SocketAppenders and a daemon that receives the log requests and writes to a file: http://logging.apache.org/log4j/docs/faq.html#3.3


On Sep 10, 2004, at 3:46 PM, Mike SG wrote:

Hi,

I compiled successfully the log4cxx on solaris and I am trying to run a small example which uses FileAppender. Our project is a multi process system. So I created a small example which has 2 processes writing to a file. I used the FileAppender for this. But when I see the output I see that it not process safe. The output is mixed up. Does this works only for threads in a single application.

Have I done something wrong? Can I use fileappender in a multiprocess application? Do I need to set something?

What options do I have?

Can somebody please help me on this.

Thanks a lot,

-Mike.

Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.



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

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
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