Details
-
Improvement
-
Resolution: Fixed
-
Major
-
1.0.11
-
None
Description
ch.qos.logback.classic.Logger has several transient fields, but parent and childrenList are not.
This means that when serializing a logger, all logger instances will be serialized. This is not necessary since Logger implements readResolve, that only depends on the name.
Suggestion for fix, mark all field in Logger as transient, except name.
In our application, the reduction in size of a serialized object (referencing a logger instance) was dramatic. It went from about 27 kb to 5 kb.