|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
org.apache.avalon.util.criteria.Criteria
org.apache.avalon.logging.impl.DefaultLoggingCriteria
DefaultLoggingCriteria is a class holding the values supplied by a user for application to a LoggingManager factory.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary |
Fields inherited from interface org.apache.avalon.logging.provider.LoggingCriteria |
LOGGING_BASEDIR_KEY, LOGGING_BOOTSTRAP_KEY, LOGGING_CONFIGURATION_KEY, LOGGING_DEBUG_KEY, LOGGING_INTERVAL_KEY |
Constructor Summary | |
DefaultLoggingCriteria(InitialContext context)
Creation of a new default logging criteria. |
Method Summary | |
File |
getBaseDirectory()
Returns the base directory for logging resources. |
Logger |
getBootstrapLogger()
Get the bootstrap logging channel |
URL |
getLoggingConfiguration()
Returns an external logging system configuration file |
long |
getUpdateInterval()
Returns the logging configuration update interval. |
boolean |
isDebugEnabled()
Returns debug policy. |
void |
setBaseDirectory(File dir)
Set the base directory. |
void |
setBootstrapLogger(Logger logger)
Set the bootstrap logging channel |
void |
setDebugEnabled(boolean mode)
Set the debug enabled policy |
void |
setLoggingConfiguration(URL url)
Set the configuration URL. |
Methods inherited from class org.apache.avalon.util.criteria.Criteria |
get, getKeys, getParameter, getParameters, getValue, put |
Methods inherited from class java.util.HashMap |
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
public DefaultLoggingCriteria(InitialContext context)
context
- the initial repository contextMethod Detail |
public void setDebugEnabled(boolean mode)
setDebugEnabled
in interface LoggingCriteria
mode
- TRUE to enabled debug mode else FALSEpublic void setBootstrapLogger(Logger logger)
setBootstrapLogger
in interface LoggingCriteria
logger
- the boootstrap logging channelpublic void setBaseDirectory(File dir)
setBaseDirectory
in interface LoggingCriteria
dir
- the base directorypublic void setLoggingConfiguration(URL url)
setLoggingConfiguration
in interface LoggingCriteria
url
- the configuration URLpublic Logger getBootstrapLogger()
getBootstrapLogger
in interface LoggingCriteria
public File getBaseDirectory()
getBaseDirectory
in interface LoggingCriteria
public boolean isDebugEnabled()
isDebugEnabled
in interface LoggingCriteria
public URL getLoggingConfiguration()
getLoggingConfiguration
in interface LoggingCriteria
public long getUpdateInterval()
getUpdateInterval
in interface LoggingCriteria
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |