Reattaching to deleted and recreated log file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Reattaching to deleted and recreated log file

Marcus
Suppose I have set up a file receiver and the log file gets deleted from disk, and then recreated. Is there a way to get Log4view to re-open that file and receive from it, without having to remove and add the receiver again?

Regards

Marcus
Reply | Threaded
Open this post in threaded view
|

Re: Reattaching to deleted and recreated log file

Ulrich
Administrator
Hi Marcus,

this should be OK for Log4View as it is a similar scenario to rolling log files.
Log4View is able to detect a file rollover and contnues reading log messages from the newly created log file.

Regards

Ulrich
Reply | Threaded
Open this post in threaded view
|

Re: Reattaching to deleted and recreated log file

Marcus
Hi Ulrich,

thanks for your reply. I'm using 12.7.0.862 and I can reproduce the mentioned behavior (regardless if by design or not) as follows:

1. Open an existing log file by adding a file receiver. No software writing into that log file is running at this point.
2. Delete the log file
3. Start a process that creates and writes into the logfile
4. No new log messages get received by Log4view

Kind regards

Marcus
Reply | Threaded
Open this post in threaded view
|

Re: Reattaching to deleted and recreated log file

Aidan
This is still not working in V2 (1.2.1.1341).