Sub-classing of the Logger class is discouraged because it is a very
problematic feature.  Consequently, XML config scripts do not support
the class attribute in <logger> element. However, your old
configuration scripts will continue to work since the <category>
element still has the "class" attribute.  Large code bases can
continue to use sub-classes of Category by changing a class name
(CategoryFactory -> LoggerFactory). If you have any problem with this
just shout.

A not  so casual developer  can still instruct  log4j to use  a custom
sub-class   of   Logger    by   programming   the   RepositorySelector
interface.  This  new  interface  is  much  more  robust  and  problem
free.

Log4j 1.2 is backward compatible with log4j 1.1 except for the
CategoryFactory -> LoggerFactory change. It also warns about features
that will be dropped in future releases. It prepares the terrain for
log4j 1.3 where Logger sub-classing will be generalized through the
RepositorySelector interface.

It might look like random changes to the user but it's all carefully
planned and in a way that is as backward compatible as possible.

At 09:28 30.05.2002 +0200, you wrote:
>New logger and level elements are not fully 'compatible' with old category
>and priority  (some attribute like class are now not supported), the order
>of elements is changhed, there is no loggerFactory elements, etc. etc.
>
>Anyone knows where can I find some documentation about differences in
>log4j.dtd beetween version 1.2 and version 1.1?
>
>
>Thanks in advance.

--
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]>

Reply via email to