You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by James Stauffer <st...@gmail.com> on 2006/01/10 15:53:14 UTC

Re: Logging multiple VMs to the same log with DaRoFiAppender

Only one VM should write to any log file.  You could have the other VM
send the log messages to the first VM over a socket (2nd VM uses
SocketAppender and 1st VM uses SocketNode to receive them).

On 1/10/06, Tobias Mantsch <t....@durato.de> wrote:
> Hi all,
>
>
>
> I'm logging output from different VMs to the same log-file using the
> DailyRollingFileAppender. Now I ran into the problem that file rolling
> was not possible because the log file could not be renamed by one of the
> VMs because the others logging to the same file kept handles to this
> file and thus forbade renaming of the file. The result is that I only
> have the actual log file but no historical versions as the file is never
> rolled.
>
> Is there a possibility to log several VMs to the same log without
> running in this kind of problems?
>
> The several VMs are running simultaneously and are accessing the log
> simultaneously. Writing to the log is no problem but renaming for file
> rotation is.
>
> Maybe someone knows a feasible solution for this?
>
>
>
> Regards
>
> Tobias Mantsch
>
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org