I've created a ILoggerFactory, and added a console provider. I want to add timestamp, but it sounds like options.TimestampFormat is obsolete.
private static ILoggerFactory _loggerFactory = LoggerFactory.Create(builder =>
{
builder.AddConsole(options =>
{
options.TimestampFormat = "HH:mm:ss ";
});
What can I do instead? I can't find any solutions online.
I solved it myself. It was as simple as using builder.AddSimpleConsole() instead of builder.AddConsole().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With