|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLogFactory
org.globus.ogsa.impl.core.logging.OGSALogFactory
Implementation of a commons LogFactory that bridges to Websphere's JRAS internal logger, and optionally to Log4J's logger object. In either case, level filters and management are external to the underlying log implementations- current version supports log4j only
| Constructor Summary | |
OGSALogFactory()
Constructor for OGSALogFactory |
|
| Method Summary | |
protected Log |
createInstance(java.lang.String aName)
createInstance(String) |
java.lang.Object |
getAttribute(java.lang.String aName)
getAttribute(String) |
java.lang.Object |
getAttributeConfig(java.lang.String aName)
get configuration attribute.-bypass runtime cache, read config file only |
java.lang.String[] |
getAttributeNames()
getAttributeNames() |
java.lang.String[] |
getAttributeNamesConfig()
getAttributeNames() |
static java.util.ResourceBundle |
getConfig()
retrieve logging parms properties file as a resourcebundle |
static java.lang.String |
getDefaultFileName()
Get name of default logfile if it exists- helper method |
Log |
getInstance(java.lang.Class aClass)
getInstance(String) |
Log |
getInstance(java.lang.String aName)
getInstance(String) |
java.lang.String |
getLogDestinationBasePath()
|
boolean |
hasAttribute(java.lang.String aName)
hasAttribute(String) |
boolean |
hasAttributeConfig(java.lang.String aName)
hasAttributeConfig(String) |
void |
loadAttributes()
setup attribute cache form ogsilogging.properties file |
void |
loadAttributesFisrt()
setup attribute cache form ogsilogging.properties file as defined by the global parameters |
void |
loadParms()
get logging factory parms |
void |
logging_service_ActiveState(boolean state)
helper for logging service to indicate its readiness |
protected void |
modifyRuntime(java.lang.String aName)
modifyRuntime Log object, with previously stored attributes |
boolean |
rasLogFactorySelfTest(OgsiLogging ls)
|
void |
release()
Release any internal references to previously created Log
instances returned by this factory. |
void |
removeAttribute(java.lang.String aName)
Remove a configuration attribute. |
void |
removeAttributeConfig(java.lang.String aName)
Remove a configuration attribute. |
void |
saveRuntime()
Save boot properties file as directed by Location key in bundle |
void |
setAttribute(java.lang.String aName,
java.lang.Object aValue)
Set cached attribute. |
void |
setAttributeConfig(java.lang.String aName,
java.lang.Object aValue)
Set configuration attribute.-bypass runtime cache, mod config file only |
void |
writeToServiceData(LogMessageElement aMsg)
writeToServiceData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OGSALogFactory()
| Method Detail |
public void loadParms()
public java.lang.String getLogDestinationBasePath()
public void saveRuntime()
throws UnableToPersistFaultElement
UnableToPersistFaultElementpublic void loadAttributesFisrt()
public void loadAttributes()
throws UnableToPersistFaultElement
UnableToPersistFaultElement
public static java.lang.String getDefaultFileName()
throws UnableToPersistFaultElement
UnableToPersistFaultElement
public void setAttributeConfig(java.lang.String aName,
java.lang.Object aValue)
throws UnableToPersistFaultElement
UnableToPersistFaultElement
public java.lang.Object getAttributeConfig(java.lang.String aName)
throws UnableToPersistFaultElement
UnableToPersistFaultElement
public boolean hasAttributeConfig(java.lang.String aName)
throws UnableToPersistFaultElement
UnableToPersistFaultElement
public void removeAttributeConfig(java.lang.String aName)
throws UnableToPersistFaultElement
UnableToPersistFaultElement
public void setAttribute(java.lang.String aName,
java.lang.Object aValue)
protected void modifyRuntime(java.lang.String aName)
public java.lang.String[] getAttributeNames()
public java.lang.String[] getAttributeNamesConfig()
throws UnableToPersistFaultElement
UnableToPersistFaultElementpublic java.lang.Object getAttribute(java.lang.String aName)
public boolean hasAttribute(java.lang.String aName)
public void removeAttribute(java.lang.String aName)
public Log getInstance(java.lang.String aName)
throws LogConfigurationException
LogConfigurationException - if a suitable Log
instance cannot be returned
public Log getInstance(java.lang.Class aClass)
throws LogConfigurationException
LogConfigurationException - if a suitable Log
instance cannot be returned
protected Log createInstance(java.lang.String aName)
throws LogConfigurationException
LogConfigurationExceptionpublic 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.
public boolean rasLogFactorySelfTest(OgsiLogging ls)
public void writeToServiceData(LogMessageElement aMsg)
public void logging_service_ActiveState(boolean state)
public static java.util.ResourceBundle getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||