|
|
Choosing A Webhost: |
Re: Log4jXMLCLogger class: msg#00027java.enhydra.xmlc
Hi, > Richard Kunze mention another level of logging that is, apparently, almost > exclusively used by LazyDOM. Here is what he said... > > > >If you want, you can also include "STATS" in the value, but this mainly > > > gives exhaustive statistics about DOM parsing, caching and node > > > expansions in LazyDOM. > > I'm really not sure if this would affect the Log4jXMLCLogger, though. I > guess maybe you can make that determination. See the following sources.... > > org/enhydra/xml/dom/DOMStats.java > org/enhydra/xml/xmlc/servlet/XMLCContext.java > org/enhydra/xml/xmlc/servlet/XMLCContextInit.java > We already use DOM statistics from XMLC in Enhydra logging (debug level). It works with Log4jXMLCLogger class. > Other than that, you might want to add more Log4j-like methods such as... > > public final boolean isInfoEnabled() > public final void info(final String message) > public final void info(final String message, final Throwable throwable) > > and so on.... > > These more Log4j-like methods could simply call the existing > XMLCLogger-like methods that already exist. Note that in Log4j, the > Category class only contains isDebugEnabled() and isInfoEnabled(). Other > levels don't contain boolean "enabled" methods in Log4j. > > That would make it easier for coders to switch either directly to Log4j or > to another wrapper class without having to change much code since they > wouldn't have to use the XMLCLogger specific methods. Of course it would > be up to the coder to decide what they want to use, but at least they have > the choice. > > Anway, if you feel these suggestions are unnecessary, then let me > know. What you have posted is acceptable so if you don't feel like making > the changes I suggested, this will definitely do. We agree with Mark about additional Log4jXMLCLogger methods. User doesn't use these methods directly. If you think that these methods will be useful for some reasons for XMLC, you can do it... Sinisa Milosevic
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Log4jXMLCLogger class, Mark Diekhans |
|---|---|
| Next by Date: | XMLC 2.0.1, Tomcat 4.1.24, Java 1.4.1_01 problem, Tom Hjellming |
| Previous by Thread: | Re: Log4jXMLCLogger class, Mark Diekhans |
| Next by Thread: | Re: Log4jXMLCLogger class, Jacob Kjome |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |