Barracuda: Log4J Servlet
Kirk Daries <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <D09B591872D1D611AF2B0010B5A1AAD021A127@WCSMAIL> |
Hi Jake, I seem to have a problem controlling the logging level within a inner class. Here's the class and pakage name "sitawc.db.DBConnectionPool.DBConnectionPoolManager" DBConnectionPoolManager is a static inner class (Singleton). Now.... here's the declaration from my log4 config file. <logger name="sitawc.db.DBConnectionPool.DBConnectionPoolManager"> <level value="warn"/> </logger> It seems to ignore this.. and logs debug messages. E.g. DEBUG sitawc.db.DBConnectionPool$DBConnectionPoolManager - bla bla debug message I even tried changing the inner class declaration to: "sitawc.db.DBConnectionPool$DBConnectionPoolManager" But that just gives the following error: log4j:ERROR Parsing error on line 33 and column 67 log4j:ERROR Attribute value "sitawc.db.DBConnectionPool$DBConnectionPoolManager" of type ID must be a name. The funny thing is... If i specify that the entire package should only show warnings..(No debug messages)... E.g. <logger name="sitawc.db.DBConnectionPool"> <level value="warn"/> </logger> The inner class still goes ahead and outputs debug messages? Hmmmmm? Regards KD _______________________________________________ Barracuda mailing list [email protected] http://www.enhydra.org/mailman/listinfo.cgi/barracuda FAQ - http://www.jguru.com/faq/Barracuda