| java.lang.Object de.schlund.pfixxml.util.logging.ProxyLogUtil
ProxyLogUtil | public class ProxyLogUtil (Code) | | Utility class used by ProxyLogObject and ProxyLogAppender.
Does the actual logging work by selecting the right mean to log
through (log4j, commons-logging, jdk-logging, servlet context logging).
author: Sebastian Marsching |
Method Summary | |
public void | configureLog4jProxy() Configures log4j to log through this factory. | boolean | doCheckEnabledCl(String name, Level level) | boolean | doCheckEnabledGeneric(String name, Level level) | boolean | doCheckEnabledJdk14(String name, Level level) | boolean | doCheckEnabledLog4j(String name, Level level) | void | doLogCl(String name, Level level, Object msg) | void | doLogCl(String name, Level level, Object msg, Throwable ex) | void | doLogGeneric(String name, Level level, Object msg) | void | doLogGeneric(String name, Level level, Object msg, Throwable ex) | void | doLogJdk14(String name, Level level, Object msg) | void | doLogJdk14(String name, Level level, Object msg, Throwable ex) | void | doLogLog4j(String name, Level level, Object msg) | void | doLogLog4j(String name, Level level, Object msg, Throwable ex) | public static ProxyLogUtil | getInstance() | boolean | isConfiguredForCl() | public void | setServletContext(ServletContext context) Sets the servlet context to use for logging when neither
log4j nor commons-logging are available. |
configureLog4jProxy | public void configureLog4jProxy()(Code) | | Configures log4j to log through this factory. Should only be used
if log4j is not configured by other code.
|
doCheckEnabledCl | boolean doCheckEnabledCl(String name, Level level)(Code) | | |
doCheckEnabledGeneric | boolean doCheckEnabledGeneric(String name, Level level)(Code) | | |
doCheckEnabledJdk14 | boolean doCheckEnabledJdk14(String name, Level level)(Code) | | |
doCheckEnabledLog4j | boolean doCheckEnabledLog4j(String name, Level level)(Code) | | |
getInstance | public static ProxyLogUtil getInstance()(Code) | | Returns the only instance of this class (singleton pattern)
Instance of this class |
isConfiguredForCl | boolean isConfiguredForCl()(Code) | | |
setServletContext | public void setServletContext(ServletContext context)(Code) | | Sets the servlet context to use for logging when neither
log4j nor commons-logging are available. However the servlet
context is only used for logging if it does not use
commons-logging or log4j (more precisely OUR instance of them)
to do the logging, as this would result in a logging loop.
Parameters: context - ServletContext to send log messages to |
|
|