Open fraserbooth opened 3 years ago
Hi Matt,
This seems like a great idea to consolidate logs :)
I'm trying to use JSNLog in an ASP.NET Core 3, but am having difficulty getting it up and running. I'm not sure if this is my poor understanding of:
loggerFactory = LoggerFactory.Create(builder =>
...or if this is an issue within the JSNLogMiddleware...
info: JSNLog.JSNLogMiddleware[0] JSNLog: Exception while processing log request - System.ObjectDisposedException: Cannot access a disposed object. Object name: 'LoggerFactory'. at Microsoft.Extensions.Logging.LoggerFactory.CreateLogger(String categoryName) at Microsoft.Extensions.Logging.LoggerFactory.DisposingLoggerFactory.CreateLogger(String categoryName) at JSNLog.LoggingAdapter.Log(FinalLogData finalLogData) at JSNLog.LogHandling.LoggerProcessor.ProcessLogRequest(String json, LogRequestBase logRequestBase, DateTime serverSideTimeUtc, String httpMethod, String origin, LogResponse response) at JSNLog.JSNLogMiddleware.ProcessRequestAsync(HttpContext context) at JSNLog.JSNLogMiddleware.Invoke(HttpContext context)
...have you, or anyone else, had this working in ASP.NET Core 3.1?
Thanks for your thoughts and advice.
All the best,
Fraser
Hi Matt,
This seems like a great idea to consolidate logs :)
I'm trying to use JSNLog in an ASP.NET Core 3, but am having difficulty getting it up and running. I'm not sure if this is my poor understanding of:
loggerFactory = LoggerFactory.Create(builder =>
...or if this is an issue within the JSNLogMiddleware...
info: JSNLog.JSNLogMiddleware[0] JSNLog: Exception while processing log request - System.ObjectDisposedException: Cannot access a disposed object. Object name: 'LoggerFactory'. at Microsoft.Extensions.Logging.LoggerFactory.CreateLogger(String categoryName) at Microsoft.Extensions.Logging.LoggerFactory.DisposingLoggerFactory.CreateLogger(String categoryName) at JSNLog.LoggingAdapter.Log(FinalLogData finalLogData) at JSNLog.LogHandling.LoggerProcessor.ProcessLogRequest(String json, LogRequestBase logRequestBase, DateTime serverSideTimeUtc, String httpMethod, String origin, LogResponse response) at JSNLog.JSNLogMiddleware.ProcessRequestAsync(HttpContext context) at JSNLog.JSNLogMiddleware.Invoke(HttpContext context)
...have you, or anyone else, had this working in ASP.NET Core 3.1?
Thanks for your thoughts and advice.
All the best,
Fraser