Skip to content

The best overload for 'File' does not have a parameter named 'preserveLogFilename' #1

Closed
@KoalaBear84

Description

@KoalaBear84

Came from serilog/serilog-sinks-file#40 and found out that I already had the correct nuget package.

Somehow I get this error.

Log.Logger = new LoggerConfiguration()
  .WriteTo.File("MyLogFile.log", rollingInterval: RollingInterval.Day, outputTemplate: outputTemplate, preserveLogFilename: true)
  .CreateLogger();

Somehow it does not see the preserveLogFilename parameter as mentioned on the readme.

I use .NET 5 RC1 with all the newest prereleases (if available), but still this problem.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions