title: How to redirect javax.mail.Session setDebugOut to log4j logger?
body: <p>How to redirect javax.mail.Session setDebugOut to log4j logger?</p>
  
  <p>Is it possible to redirect only mailSession debug out to logger?</p>
  
  <p>I mean, there are solutions like</p>
  
  <p><a href="https://stackoverflow.com/questions/1200175/log4j-redirect-stdout-to-dailyrollingfileappender/1200321#1200321">link text</a></p>
  
  <p>which reassigns all standard output to go to log4j</p>
  
  <p>--System.setOut(new Log4jStream())</p>
  
  <p>Best Regards</p>