You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we get a demo on using the new .NET 6 program.cs structure with Jsnlog? I'm using the following code, but does not seem to work, getting 404 on the /jsnlog.logger endpoint.
var app = builder.Build();
var logger = app.Logger;
var lifetime = app.Lifetime;
lifetime.ApplicationStarted.Register(() =>
{
var factory = app.Services.GetRequiredService<ILoggerFactory>();
app.UseJSNLog(new LoggingAdapter(factory));
});
The text was updated successfully, but these errors were encountered:
Can we get a demo on using the new .NET 6 program.cs structure with Jsnlog? I'm using the following code, but does not seem to work, getting 404 on the /jsnlog.logger endpoint.
The text was updated successfully, but these errors were encountered: