net.sourceforge.esw.service.log
Class LogFactory
java.lang.Object
|
+--net.sourceforge.esw.service.log.LogFactory
- All Implemented Interfaces:
- ILogConstants
- public class LogFactory
- extends java.lang.Object
- implements ILogConstants
Creational factory for log package elements.
This factory returns the current ILog instance, and ILogDatum instances.
- See Also:
ILog
,
ILogDatum
Fields inherited from interface net.sourceforge.esw.service.log.ILogConstants |
APP_ID, APP_ID_FIELD, CLASS_CONSTANT, CLASSES_CONSTANT, DATA_ID, DATA_ID_FIELD, DEFAULT_FILE_DIR, DESC_ID, DESC_ID_FIELD, ENTRY_CONSTANT, ENTRYS_CONSTANT, EXPRESSION_CONSTANT, FILENAME_CONSTANT, FILTER_CONSTANT, FILTER_LIST_CONSTANT, ID_ID, ID_ID_FIELD, LAST_FILTER_NUM_CONSTANT, RANK_ID, RANK_ID_FIELD, REFERENCE_LOG_DRIVER, REFERENCE_LOG_PASSWORD, REFERENCE_LOG_URL, REFERENCE_LOG_USER, SERVICE_ID, SERVICE_ID_CONSTANT, SERVICE_ID_FIELD, TARGET_CONSTANT, TARGETS_CONSTANT, WHEN_ID, WHEN_ID_FIELD, WHERE_ID, WHERE_ID_FIELD |
Method Summary |
static IFilterExpression |
createFilterExpression()
Returns an instance of an IFilterExpression. |
static ILogDatum |
createLogDatum(java.util.Date aWhen,
java.lang.String aWhere,
int aImportance,
java.lang.String aSimpleWhat,
INode aComplexWhat,
java.lang.String aWho,
long aId)
Returns an instance of an ILogDatum for logging of events. |
static ILog |
getLog()
Returns an instance of an ILog for logging of events. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogFactory
public LogFactory()
getLog
public static ILog getLog()
- Returns an instance of an ILog for logging of events. The ILog is the
mechinism though which events are logged.
- Returns:
- the current ILog instance for logging events.
createLogDatum
public static ILogDatum createLogDatum(java.util.Date aWhen,
java.lang.String aWhere,
int aImportance,
java.lang.String aSimpleWhat,
INode aComplexWhat,
java.lang.String aWho,
long aId)
- Returns an instance of an ILogDatum for logging of events. The ILogDatum
is the container that holds the data to be given to an ILog instance for
logging of events.
- Parameters:
aWhen
- when the event occuredaWhere
- Where the event occuredaImportance
- How important was the event that occuredaSimpleWhat
- Simply, what was the event that occuredaComplexWhat
- Complex caputured state of the event that occuredaWho
- Who the event occured with- Returns:
- a new ILogDatum instance
createFilterExpression
public static IFilterExpression createFilterExpression()
- Returns an instance of an IFilterExpression. This instance is a default
filter expression that always returns true.
- Returns:
- a new IFilterExpression instance
Copyright 2002 Free Software Foundation. All Rights Reserved.