Class Simple
- java.lang.Object
-
- edu.isi.pegasus.common.logging.format.AbstractLogFormatter
-
- edu.isi.pegasus.common.logging.format.Simple
-
- All Implemented Interfaces:
LogFormatter
public class Simple extends AbstractLogFormatter
This formatter formats the messages in the simple format.- Version:
- $Revision$
- Author:
- Karan Vahi, Gaurang Mehta
-
-
Field Summary
-
Fields inherited from class edu.isi.pegasus.common.logging.format.AbstractLogFormatter
mProgram, mStack
-
-
Constructor Summary
Constructors Constructor Description Simple()
The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogFormatter
add(java.lang.String value)
Add to the log message with just a value.void
addEvent(java.lang.String name, java.lang.String entityName, java.lang.String entityID)
Adds the event that is to be associated with the log messages onto an internal stackvoid
addEvent(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> map)
Adds the event that is to be associated with the log messages onto an internal stack-
Methods inherited from class edu.isi.pegasus.common.logging.format.AbstractLogFormatter
add, createEntityHierarchyMessage, createLogMessage, createLogMessageAndReset, getEndEventMessage, getEventName, getProgramName, getStartEventMessage, popEvent, setProgramName
-
-
-
-
Method Detail
-
add
public LogFormatter add(java.lang.String value)
Add to the log message with just a value.- Specified by:
add
in interfaceLogFormatter
- Overrides:
add
in classAbstractLogFormatter
- Parameters:
value
-- Returns:
- self-reference
-
addEvent
public void addEvent(java.lang.String name, java.lang.String entityName, java.lang.String entityID)
Adds the event that is to be associated with the log messages onto an internal stack- Specified by:
addEvent
in interfaceLogFormatter
- Specified by:
addEvent
in classAbstractLogFormatter
- Parameters:
name
- the name of the event to be associatedentityName
- the primary entity that is associated with the event e.g. workflowentityID
- the id of that entity.
-
addEvent
public void addEvent(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> map)
Adds the event that is to be associated with the log messages onto an internal stack- Parameters:
name
- the name of the event to be associatedmap
- Map indexed by entity name . The values is corresponding EntityID
-
-