# Reattaching to deleted and recreated log file

**URL:** <https://forum.log4view.com/t/reattaching-to-deleted-and-recreated-log-file/113>\
**Category:** Log4View Support\
**Created:** [June 29, 2018, 8:34am UTC](https://forum.log4view.com/t/reattaching-to-deleted-and-recreated-log-file/113 "2018-06-29T08:34:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.log4view.com/images/discourse-logo-sketch-small.png) [@system](https://forum.log4view.com/u/system)\
**Post date:** [June 29, 2018, 8:34am UTC](https://forum.log4view.com/t/reattaching-to-deleted-and-recreated-log-file/113/1 "2018-06-29T08:34:02Z")

</div>

_Guest on Nabble:_ `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

---

<div class="post-metadata">

**Author:** ![Ulrich](https://forum.log4view.com/user_avatar/forum.log4view.com/ulrich/32/7_2.png) [@Ulrich](https://forum.log4view.com/u/Ulrich)\
**Post date:** [June 29, 2018, 10:06am UTC](https://forum.log4view.com/t/reattaching-to-deleted-and-recreated-log-file/113/2 "2018-06-29T10:06:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://forum.log4view.com/images/discourse-logo-sketch-small.png) [@system](https://forum.log4view.com/u/system)\
**Post date:** [July 6, 2018, 7:56am UTC](https://forum.log4view.com/t/reattaching-to-deleted-and-recreated-log-file/113/3 "2018-07-06T07:56:25Z")

</div>

_Guest on Nabble:_ `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

---

<div class="post-metadata">

**Author:** ![Aidan](https://forum.log4view.com/letter_avatar_proxy/v4/letter/a/c5a1d2/32.png) [@Aidan](https://forum.log4view.com/u/Aidan)\
**Post date:** [November 25, 2018, 10:31am UTC](https://forum.log4view.com/t/reattaching-to-deleted-and-recreated-log-file/113/4 "2018-11-25T10:31:32Z")

</div>

This is still not working in V2 (1.2.1.1341).
