The LoggerAwareInterface allows classes to announce that it has a setLogger method. This can be used by frameworks and DI containers to set a logger for that specific service.
Ideally, the application builder or the application itself can set the logger for each service. Maybe this can be solved using callbacks/events inside the ServiceCollection.
The
LoggerAwareInterfaceallows classes to announce that it has asetLoggermethod. This can be used by frameworks and DI containers to set a logger for that specific service.Ideally, the application builder or the application itself can set the logger for each service. Maybe this can be solved using callbacks/events inside the
ServiceCollection.