title: Grails 2.1.1 - Change default injected log object from commons.logging.Log to slf4j.Logger
body: <p>I've a Grails project where I replaced Log4j with Logback. Now I also want to use the <code>org.slf4j.Logger</code> instead of <code>org.apache.commons.logging.Log</code> class for logging. How can I change the default <code>log</code> object which is placed by Dependency Injection to every Controller/Service/Domain class?</p>
  
  <p>I searched within the <code>BuildConfig.groovy</code> and <code>Config.groovy</code> files but I couldn't find any configuration for this? I also looked at <code>grails-app/src/templates/artifacts/Controller.groovy</code> but I still couldn't find any place where this could be configured...</p>
  
  <p>Shure, I could get my own instance of an <code>org.slf4j.Logger</code>, but then I'd have to declare it within every class like</p>
  
  <pre><code>private static Logger lbLogger = LoggerFactory.getLogger(MyClass.class)
  </code></pre>
  
  <p>and that's not what I want - I'd love to just replace injected <code>Logger</code> object.</p>
  
  <p>Does anybody have any suggestions on this topic?</p>