title: Use custom class for Spring logging
body: <p>I'm using Spring with 3rd party product API. This product is using its own class for logging </p>
  
  <p>it looks something like this:</p>
  
  <pre><code>import x.y.z.PluginLogger;
  public class MyLogger extends PluginLogger{
  
  public MyLogger(){
      super("myLogger-log4j-conf.xml");
      super.init();
  }
  
  }
  </code></pre>
  
  <p>now I'm initiating this logger in my code:</p>
  
  <pre><code>public static Logger logger = new MyLogger();
  </code></pre>
  
  <p>Now my question is simple I can initate this class file in Spring Application Context.</p>
  
  <pre><code>&lt;bean id="logger" class="z.y.x.Logger" parent="pluginLogger"&gt;
  &lt;bean id="pluginLogger"  class="x.y.z.ParentLogger"&gt;
  </code></pre>
  
  <p>How can I tell Spring to use logger bean as its default logger? In other words I would like to use this bean as default logger for Spring framework and for my code I writing.?</p>
  
  <p>Hope I maid myself clear.</p>