Hi, it's me again.
I have work on the idea i had to open existing log file and i have developped a solution for me.
If you want to use it i give you the source code of my new functions.
There is a little quantity of code. I have only add some code and made no modification of yours.
Firstly, I had a button on your toolbar linking the OnClick Event to this method :
/// Load function of a Log4J file generated using FileReceiver
void loadBtn_Click(object sender,
OpenFileDialog dlg =
if (dlg.ShowDialog(this) ==
bool oldPauseLog = _pauseLog;
//we need a FileReceiver
FileReceiver fr =
//it need to manage the specified file
fr.FileToWatch = dlg.FileName;
//normal use of a FileReceiver
_pauseLog = oldPauseLog;
And I need another method : ReloadAllFile on the FileReceiver object :
/// Permit to reload a complete file
//we put the last position to 0 in order to read all the file
_lastFileLength = 0;
//we simulate a fileChanged event
That's all !
If you are interested in this functionnality, i can send you directly the source code if you want to test it without modifing your code.
Hoping it's interest you.