I'm doing dependency injection with no framework (no spring/guice) just plain java (I need to). My question is about loggers what about logger? i usually instantiate it in
private static logger = Logger.getLogger(myclass);
however this is not dependency injection, should I pass the logger into each ctor? this would look wierd... so what to do about loggers and depedency injection?
PS I prefer DI with ctor and not setters in this way i know exactly what my classes need.
thanks