EAF 7.6 Implementation

org.enhydra.logging
Class MonologFactory

java.lang.Object
  extended by org.apache.commons.logging.LogFactory
      extended by org.enhydra.logging.MonologFactory

Deprecated. Per discussion on COMMONS-DEV, the behind-the-scenes use of this class as a proxy factory has been removed. For 1.0, you can still request it directly if you wish, but it doesn't really do anything useful, and will be removed in 1.1.

public final class MonologFactory
extends org.apache.commons.logging.LogFactory

Concrete subclass of LogFactory specific to log4j.

Author:
Costin Manolache

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

lf

public org.objectweb.util.monolog.api.LoggerFactory lf
Deprecated. 

traceproperties

public java.lang.String traceproperties
Deprecated. 

PROPERTY_FILE

public static java.lang.String PROPERTY_FILE
Deprecated. 
Constructor Detail

MonologFactory

public MonologFactory()
               throws com.lutris.util.ConfigException
Deprecated. 
Throws:
com.lutris.util.ConfigException
Method Detail

getAttribute

public 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.

Specified by:
getAttribute in class org.apache.commons.logging.LogFactory
Parameters:
name - Name of the attribute to return

getAttributeNames

public java.lang.String[] getAttributeNames()
Deprecated. 
Return an array containing the names of all currently defined configuration attributes. If there are no such attributes, a zero length array is returned.

Specified by:
getAttributeNames in class org.apache.commons.logging.LogFactory

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.Class clazz)
                                           throws org.apache.commons.logging.LogConfigurationException
Deprecated. 
Convenience method to derive a name from the specified class and call getInstance(String) with it.

Specified by:
getInstance in class org.apache.commons.logging.LogFactory
Parameters:
clazz - Class for which a suitable Log name will be derived
Throws:
org.apache.commons.logging.LogConfigurationException - if a suitable Log instance cannot be returned

getInstance

public org.apache.commons.logging.Log getInstance(java.lang.String name)
                                           throws org.apache.commons.logging.LogConfigurationException
Deprecated. 
Specified by:
getInstance in class org.apache.commons.logging.LogFactory
Throws:
org.apache.commons.logging.LogConfigurationException

release

public void release()
Deprecated. 
Release any internal references to previously created 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.

Specified by:
release in class org.apache.commons.logging.LogFactory

removeAttribute

public void removeAttribute(java.lang.String name)
Deprecated. 
Remove any configuration attribute associated with the specified name. If there is no such attribute, no action is taken.

Specified by:
removeAttribute in class org.apache.commons.logging.LogFactory
Parameters:
name - Name of the attribute to remove

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Deprecated. 
Set the configuration attribute with the specified name. Calling this with a null value is equivalent to calling removeAttribute(name).

Specified by:
setAttribute in class org.apache.commons.logging.LogFactory
Parameters:
name - Name of the attribute to set
value - Value of the attribute to set, or null to remove any setting for this attribute

configure

public void configure(java.lang.String monologConfFile)
Deprecated. 
Configure the logger. All current configuration is discarded. This is a simplistic initial implementation that just allows directing to a single log file or stderr on a level basis. A more complete interface will be provided in the future.

Parameters:
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.
Throws:
java.io.IOException - If an error occurs opening the log file.

configure

public void configure()
               throws com.lutris.util.ConfigException
Deprecated. 
Default configuration of the logger. A JMX search for logger configuration file name. This file must be present in the classpath

Throws:
com.lutris.util.ConfigException

EAF 7.6 Implementation