logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remko Popma <remko.po...@gmail.com>
Subject Re: Different Processes, same Logfile
Date Sat, 25 Jun 2016 06:55:11 GMT
I think writing to the same file is possible, but rollover will give
unpredictable results.
As long as you use the normal FileAppender (not RollingFileAppender) this
should work.

Also do not use the RandomAccessFile appender, since both processes will
overwrite each other's log files.

On Sat, Jun 25, 2016 at 3:28 PM, Jochen Wiedmann <jochen.wiedmann@gmail.com>
wrote:

> Hi,
>
> is it possible. that multiple proceses share a common log file. (The
> processes aree command line executables, ,which will be started at
> unpredictable times.
>
> Thanks,
>
> Jochen
>
>
> --
> The next time you hear: "Don't reinvent the wheel!"
>
>
> http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message