Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Good project! Support for .NET 8? console log was changed after add this lib. #60

Open
pigLoveRabbit520 opened this issue Dec 22, 2023 · 2 comments

Comments

@pigLoveRabbit520
Copy link

windows 10
.NET 8

var builder = Host.CreateApplicationBuilder();
builder.Logging.AddFile("app.log", append: true); // add this row
builder.Logging.AddSimpleConsole(option =>
{
    option.IncludeScopes = true;
    option.TimestampFormat = "MM-dd HH:mm:ss ";
});

Preview console log:
image

Later console log:
image

@VitaliyMF
Copy link
Contributor

Do you mean that adding

builder.Logging.AddFile("app.log", append: true);

somehow affects your console log output?.. Do you mean that after that you don't see log entries that are displayed when you comment out 'AddFile' call? I have no idea how this could be possible at all.

Do you have a sample console app that I may use to reproduce the issue?

@VitaliyMF
Copy link
Contributor

@pigLoveRabbit520 Please try to reference the latest NReco.Logging.File 1.2.0, it has a target for net8.0 which references appropriate Microsoft.Extensions.Logging version (8.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants