0 votes
ago by (76.3k points)

This question was originally asked as this comment by pbisht:

new Rebex.FileLogWriter(logPath, Rebex.LogLevel.Info);

I observed Rebex.FileLogWriter opens the log file in overwrite mode, not append mode. Is it true? Can we do it in append mode or we have to make it custom?

1 Answer

0 votes
ago by (76.3k points)

No, the Rebex.FileLogWriter opens the file with FileMode.Append value (along with FileAccess.Write and FileShare.ReadWrite). So, it seems that something else is deleting/overwriting the file.

No, it is not possible to adjust file creation options of the Rebex.FileLogWriter.

...