|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.logging.LogFactory
helma.util.Logging
public class Logging
Implementation of Jakarta Commons LogFactory that supports both simple console logging and logging to files that are rotated and gzipped each night.
| Field Summary |
|---|
| 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 | |
|---|---|
Logging()
Constructs a log factory, getting the base logging directory from the helma.logdir system property. |
|
| Method Summary | |
|---|---|
static void |
ensureRunning()
Make sure logger thread is active. |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.lang.String[] |
getAttributeNames()
|
static Logger |
getConsoleLog()
Get a logger to System.out. |
Logger |
getFileLog(java.lang.String logname)
Get a file logger, creating it if it doesn't exist yet. |
org.apache.commons.logging.Log |
getInstance(java.lang.Class clazz)
|
org.apache.commons.logging.Log |
getInstance(java.lang.String logname)
Get a logger for a file name. |
void |
release()
Flush all logs and shut down. |
void |
removeAttribute(java.lang.String parm1)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
static void |
shutdown()
Shut down logging, stopping the logger thread and closing all logs. |
| 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 |
| Constructor Detail |
|---|
public Logging()
| Method Detail |
|---|
public org.apache.commons.logging.Log getInstance(java.lang.String logname)
getInstance in class org.apache.commons.logging.LogFactorypublic static Logger getConsoleLog()
public Logger getFileLog(java.lang.String logname)
logname - the base name for the file logger
public org.apache.commons.logging.Log getInstance(java.lang.Class clazz)
getInstance in class org.apache.commons.logging.LogFactory
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in class org.apache.commons.logging.LogFactorypublic java.lang.Object getAttribute(java.lang.String name)
getAttribute in class org.apache.commons.logging.LogFactorypublic java.lang.String[] getAttributeNames()
getAttributeNames in class org.apache.commons.logging.LogFactorypublic void removeAttribute(java.lang.String parm1)
removeAttribute in class org.apache.commons.logging.LogFactorypublic void release()
release in class org.apache.commons.logging.LogFactorypublic static void ensureRunning()
public static void shutdown()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||