To which layer does the logger belongs in DDD?
What would we want to log in DDD?
Important events that occur, of course.
The Logger itself is a service of the infrastructure. Bridging the domain and the logger can occur in an event handler.
Logging fits well inside of event handlers and when placed there it creates a very nice separation of concerns.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With