Geoff,

My first and foremost criticism on the JSR47 API is the lack of any provision for 
pluggability. The LogManger can be set at application initialization time but not the 
type (class) of the Logger to be used. 

Logger should become an interface allowing a user-chosen implementation to be returned 
from an abstract factory, as in:

  Logger logger = LogFactory.getLogger("some name");

Only the LogFactory should be concerned with the Logger and LogManager instances to 
return to the user.

I am also in perfect agreement with the criticism voiced by Greg Davis at 
http://www.swzoo.org/documents/miscellaneous/jsr047/ in particular with points 1,2 and 
4.

Having attentively read java.util.logging.*, I can say that there are many ailments in 
the API. However, the lack of pluggability is what worries me most. Regards,  Ceki 
Gülcü

ps: It also seems that no part of JDK 1.4 is using the newly introduced logging API. 
Does this mean that there is still hope to influence the API?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to