Skip to content

Truncating/Deleting log files while logging application is running #78

@damien-sorin

Description

@damien-sorin

Hi,

within our windows application there is a debug logging mode which generates quite a lot of log output.

If this mode is active it would be nice to occasionally truncate or delete the log file(s) without stopping and restarting application.

This would be very helpful when "debugging" the application on systems of the application user (without development environment).

Would it be possible to implement a configuration key like "non-exclusive" for the file logger, as the FileShareMode is currently hard coded as FileShare.Read without sharing write and delete operations.

For compatibility reason this option could be defaulting to the current behavior, of course.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions