The ILogger interface has a required method of IsEnabled. I am struggling to understand the purpose of that method in the interface. (Important note: I am not wondering about an implementing class, just the interface.)
It does not seem to be called by .Net Core during normal logging.
This answer seems to indicate that it is there for the developer to use when deciding to log.
But that does not make sense. As the developer I can make any method I need in the class that implements the ILogger interface in order to decide if I want to log or not. If a class implementing the interface does not need to provide an IsEnabled, it does not make sense to force all implementors to make it.
What is the purpose of is IsEnabled in the ILogger Interface?