Re: Should Logger classes be transient?

2011-01-17 Thread Fernando Wermus
Just to know Why a static variable is not serializable? On Sat, Jan 15, 2011 at 7:44 PM, Emmanouil Batsis ma...@abiss.gr wrote: Quoting Alexandros Karypidis akary...@yahoo.gr: I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log =

RE: Should Logger classes be transient?

2011-01-17 Thread Wilhelmsen Tor Iver
Just to know Why a static variable is not serializable? Because objects (instances) are serialized and static data belongs to the class and not instances. - Tor Iver - To unsubscribe, e-mail:

Should Logger classes be transient?

2011-01-15 Thread Alexandros Karypidis
Hello, I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing a page that was saved and then re-loaded would result in breaking logging, as the variable

Re: Should Logger classes be transient?

2011-01-15 Thread James Carman
try static On Sat, Jan 15, 2011 at 3:59 PM, Alexandros Karypidis akary...@yahoo.grwrote: Hello, I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing

Re: Should Logger classes be transient?

2011-01-15 Thread Emmanouil Batsis
Quoting Alexandros Karypidis akary...@yahoo.gr: I'm using SLF4J and was wondering whether pages should declare: private transient final Logger log = LoggerFactory .getLogger(SomePage.class); as members. I guess that accessing a page that was saved and then re-loaded would