At 11:48 30.05.2002 +0200, Giuseppe Madonna wrote: >However I wonder, to avoid Logger subclassing, why not make it final? >But it was just a thought...
Logger class is not final because Logger sub-classing allows very important enhancements such as security or transparent logging domains. Domains are a "secret" feature planned for log4j 1.3. The important point to note is that these sub-classes do not change the Logger interface, that is the set of methods available to the user. Sub-classing Logger by adding new logging methods is strongly discouraged because code written for such loggers will simply not run in environments where the enhanced Logger sub-classes are used. (I am thinking of Application Servers and Servlet Containers.) Does it make any sense? >Kind regards, >Giuseppe. -- Ceki SUICIDE BOMBING - A CRIME AGAINST HUMANITY Sign the petition: http://www.petitiononline.com/1234567b I am signatory number 22106. What is your number? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
