logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Schöning <tschoen...@am-soft.de>
Subject Re: How to set LockingModel in Log4cxx (if possible)
Date Thu, 12 Apr 2012 09:08:44 GMT
Guten Tag Millard, Andy,
am Mittwoch, 11. April 2012 um 23:44 schrieben Sie:

> Is LockingModel implemented for log4cxx (0.10.0) as it is for Log4Net ?

No. Why do you think it should be if even the appender name is log4net
specific? :-)

> If this is not supported in Log4cxx 0.10.0 what are the alternatives?
> E.g. suggested code changes to log4cxx itself?  A later release of
> log4cxx, although I have not found one.

Use another Editor to view the file. If Notepad can open the file, the
problem is not with the file locking, because it's locked by the
logging process to be readable by others, but with the editor which
can't open the file unless it is able to get an exclusive lock.
TextPad for example is able to open logfiles in use, too. I don't
think there's any other solution because locking the file by the
logging process to be the only one which can write to the logfile
seems fine and logical to me.

Mit freundlichen Grüßen,

Thorsten Schöning

Thorsten Schöning       E-Mail:Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon.............030-2 1001-310
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow

View raw message