ILogger and Null Object Pattern
Learn about using the null object pattern with ILogger and ILoggerFactory to avoid NullReferenceExceptions without forcing implementors to supply logging instances.
Learn about using the null object pattern with ILogger and ILoggerFactory to avoid NullReferenceExceptions without forcing implementors to supply logging instances.
ILogger is at the heart of the ASP.NET Core infrastructure and works well when you use it correctly. If you approach it the wrong way,…