Skip to content

[🚀 Feature]: Ability to overwrite files when using FileLogHandler #13860

@MJB222398

Description

@MJB222398

Feature and motivation

I want to make use of FileLogHandler to output driver logs to the filesystem for the testing suite (one file per test). Currently this only supports appending logs to the file. I do not need to keep logs from previous test runs and would prefer to create new files each time so that I only have the relevant logs.

Usage example

The solution could be as simple as having an overload constructor for the FileLogHandler:

public FileLogHandler(string filePath, bool overwriteExisting)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-dotnet.NET BindingsI-enhancementSomething could be betterR-help wantedIssues looking for contributions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions