Improve story for setting-up logging outside of web/generic host
pakrym opened this issue · 2 comments
pakrym commented
It became harder after old style members were obsolete.
pakrym commented
A possible solution is to add a wrapper method that would create container internally so what you'll see from outside would be:
LoggerFactory.Create(builder => builder
.AddConsole()
.AddFilter(...)
.AddConfiguration(...));
This would require shipping a new package because we can't add a dependency on MEDI to Logging.Abstrations or Logging itself.
pakrym commented
Whoops, wrong repo. Closing in favor of dotnet/extensions#615