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