|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.logging.LogFactory
org.enhydra.logging.MonologFactory
public final class MonologFactory
Concrete subclass of LogFactory
specific to log4j.
Field Summary | |
---|---|
org.objectweb.util.monolog.api.LoggerFactory |
lf
Deprecated. |
static java.lang.String |
PROPERTY_FILE
Deprecated. |
java.lang.String |
traceproperties
Deprecated. |
Fields inherited from class org.apache.commons.logging.LogFactory |
---|
DIAGNOSTICS_DEST_PROPERTY, factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, HASHTABLE_IMPLEMENTATION_PROPERTY, nullClassLoaderFactory, PRIORITY_KEY, SERVICE_ID, TCCL_KEY |
Constructor Summary | |
---|---|
MonologFactory()
Deprecated. |
Method Summary | |
---|---|
void |
configure()
Deprecated. Default configuration of the logger. |
void |
configure(java.lang.String monologConfFile)
Deprecated. Configure the logger. |
java.lang.Object |
getAttribute(java.lang.String name)
Deprecated. Return the configuration attribute with the specified name (if any), or null if there is no such attribute. |
java.lang.String[] |
getAttributeNames()
Deprecated. Return an array containing the names of all currently defined configuration attributes. |
org.apache.commons.logging.Log |
getInstance(java.lang.Class clazz)
Deprecated. Convenience method to derive a name from the specified class and call getInstance(String) with it. |
org.apache.commons.logging.Log |
getInstance(java.lang.String name)
Deprecated. |
void |
release()
Deprecated. Release any internal references to previously created Log
instances returned by this factory. |
void |
removeAttribute(java.lang.String name)
Deprecated. Remove any configuration attribute associated with the specified name. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Deprecated. Set the configuration attribute with the specified name. |
Methods inherited from class org.apache.commons.logging.LogFactory |
---|
createFactory, directGetContextClassLoader, getClassLoader, getContextClassLoader, getFactory, getLog, getLog, isDiagnosticsEnabled, logRawDiagnostic, newFactory, newFactory, objectId, release, releaseAll |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public org.objectweb.util.monolog.api.LoggerFactory lf
public java.lang.String traceproperties
public static java.lang.String PROPERTY_FILE
Constructor Detail |
---|
public MonologFactory() throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
Method Detail |
---|
public java.lang.Object getAttribute(java.lang.String name)
null
if there is no such attribute.
getAttribute
in class org.apache.commons.logging.LogFactory
name
- Name of the attribute to returnpublic java.lang.String[] getAttributeNames()
getAttributeNames
in class org.apache.commons.logging.LogFactory
public org.apache.commons.logging.Log getInstance(java.lang.Class clazz) throws org.apache.commons.logging.LogConfigurationException
getInstance(String)
with it.
getInstance
in class org.apache.commons.logging.LogFactory
clazz
- Class for which a suitable Log name will be derived
org.apache.commons.logging.LogConfigurationException
- if a suitable Log
instance cannot be returnedpublic org.apache.commons.logging.Log getInstance(java.lang.String name) throws org.apache.commons.logging.LogConfigurationException
getInstance
in class org.apache.commons.logging.LogFactory
org.apache.commons.logging.LogConfigurationException
public void release()
Log
instances returned by this factory. This is useful environments
like servlet containers, which implement application reloading by
throwing away a ClassLoader. Dangling references to objects in that
class loader would prevent garbage collection.
release
in class org.apache.commons.logging.LogFactory
public void removeAttribute(java.lang.String name)
removeAttribute
in class org.apache.commons.logging.LogFactory
name
- Name of the attribute to removepublic void setAttribute(java.lang.String name, java.lang.Object value)
null
value is equivalent to calling
removeAttribute(name)
.
setAttribute
in class org.apache.commons.logging.LogFactory
name
- Name of the attribute to setvalue
- Value of the attribute to set, or null
to remove any setting for this attributepublic void configure(java.lang.String monologConfFile)
logFile
- The log file to write to.fileLevels
- List of levels that will be written to the file.stderrLevels
- List of levels that will be written to stderr.
The same level may appear in both lists.
java.io.IOException
- If an error occurs opening the log file.public void configure() throws com.lutris.util.ConfigException
com.lutris.util.ConfigException
|
EAF 7.6 Implementation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |