Logging, Aspect Oriented Programming, and Dependency Injection – Trying to make sense of it all

Logging is not a Service, it’s a cross-cutting concern. As such, it’s best implemented with a Decorator. However, adding lots of Decorators just to enable logging of various different services tend to violate DRY, in which case you can then further evolve those Decorators into a single Interceptor. While you can use IL weaving to … Read more