I asked myself the same question and I guess the answer is that Logger is included in lots of classes, many of which are Serializable. It would be easier for us to make AbstractLogger Serializable then for all the users to mark it as transient and have to manually instantiate the Logger during de-Serialization.
Ralph > On Jul 21, 2016, at 9:29 AM, Mikael Ståldal <[email protected]> wrote: > > So then why is AbstractLogger, and our implementation in log4j-core, > Serializable? > > On Thu, Jul 21, 2016 at 6:18 PM, Gary Gregory <[email protected] > <mailto:[email protected]>> wrote: > I do not think there is a way to know what folks are doing out there... > > Gary > > On Thu, Jul 21, 2016 at 9:13 AM, Mikael Ståldal <[email protected] > <mailto:[email protected]>> wrote: > Are there any providers not using AbstractLogger? > > On Thu, Jul 21, 2016 at 6:09 PM, Gary Gregory <[email protected] > <mailto:[email protected]>> wrote: > Probably to leave the decision on whether to support serialization to each > provider. > > Gary > > > On Jul 21, 2016 3:14 AM, "Mikael Ståldal" <[email protected] > <mailto:[email protected]>> wrote: > AbstractLogger is Serializable, but the Logger interface is not. Why is it so? > > -- > > > Mikael Ståldal > Senior software developer > > Magine TV > [email protected] <mailto:[email protected]> > Grev Turegatan 3 | 114 46 Stockholm, Sweden | www.magine.com > <http://www.magine.com/> > > Privileged and/or Confidential Information may be contained in this message. > If you are not the addressee indicated in this message > (or responsible for delivery of the message to such a person), you may not > copy or deliver this message to anyone. In such case, > you should destroy this message and kindly notify the sender by reply email. > > > > > -- > > > Mikael Ståldal > Senior software developer > > Magine TV > [email protected] <mailto:[email protected]> > Grev Turegatan 3 | 114 46 Stockholm, Sweden | www.magine.com > <http://www.magine.com/> > > Privileged and/or Confidential Information may be contained in this message. > If you are not the addressee indicated in this message > (or responsible for delivery of the message to such a person), you may not > copy or deliver this message to anyone. In such case, > you should destroy this message and kindly notify the sender by reply email. > > > > > -- > E-Mail: [email protected] <mailto:[email protected]> | > [email protected] <mailto:[email protected]> > Java Persistence with Hibernate, Second Edition > <http://www.manning.com/bauer3/> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> > Spring Batch in Action <http://www.manning.com/templier/> > Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/> > Home: http://garygregory.com/ <http://garygregory.com/> > Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory> > > > -- > > > Mikael Ståldal > Senior software developer > > Magine TV > [email protected] <mailto:[email protected]> > Grev Turegatan 3 | 114 46 Stockholm, Sweden | www.magine.com > <http://www.magine.com/> > > Privileged and/or Confidential Information may be contained in this message. > If you are not the addressee indicated in this message > (or responsible for delivery of the message to such a person), you may not > copy or deliver this message to anyone. In such case, > you should destroy this message and kindly notify the sender by reply email. >
