title: Should a Log4J logger be declared as transient?
body: <p>I am using Java 1.4 with Log4J. </p>
  
  <p>Some of my code involves serializing and deserializing value objects (POJOs). </p>
  
  <p>Each of my POJOs declares a logger with</p>
  
  <pre><code>private final Logger log = Logger.getLogger(getClass());
  </code></pre>
  
  <p>The serializer complains of org.apache.log4j.Logger not being Serializable.</p>
  
  <p>Should I use</p>
  
  <pre><code>private final transient Logger log = Logger.getLogger(getClass());
  </code></pre>
  
  <p>instead?</p>