|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LogFormatter
The interface that defines how the messages need to be formatted for logging
| Method Summary | |
|---|---|
LogFormatter |
add(String value)
Add to the log message with just a value. |
LogFormatter |
add(String key,
String value)
Add to the log message. |
void |
addEvent(String name,
Map<String,String> map)
Adds the event that is to be associated with the log messages onto an internal stack |
void |
addEvent(String name,
String entityName,
String entityID)
Adds the event that is to be associated with the log messages onto an internal stack |
String |
createEntityHierarchyMessage(String parentType,
String parentID,
String childIdType,
Collection<String> childIDs)
Creates a log message that connects the parent entities with the children. |
String |
createLogMessage()
Creates a log message with the contents of the internal log buffer. |
String |
createLogMessageAndReset()
Creates a log message with the contents of the internal log buffer. |
String |
getEndEventMessage()
Creates the end message for the event on top of the stack. |
String |
getEventName()
Returns the name of event that is currently associated with the log messages and is on the top of the stack |
String |
getProgramName(String name)
Returns the program name for the software whose log statement are logged. |
String |
getStartEventMessage()
Creates the start message for the event on top of the internal stack |
Event |
popEvent()
Pop the event on top of the internal stack. |
void |
setProgramName(String name)
Sets the program name for the software whose log statement are logged. |
| Method Detail |
|---|
void setProgramName(String name)
name - String getProgramName(String name)
name -
void addEvent(String name,
String entityName,
String entityID)
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.
void addEvent(String name,
Map<String,String> map)
name - the name of the event to be associatedmap - Map indexed by entity name . The values is corresponding
EntityIDEvent popEvent()
String getEventName()
String getStartEventMessage()
String getEndEventMessage()
LogFormatter add(String value)
value -
LogFormatter add(String key,
String value)
key - value -
String createLogMessage()
String createLogMessageAndReset()
String createEntityHierarchyMessage(String parentType,
String parentID,
String childIdType,
Collection<String> childIDs)
parentType - the type of parent entityparentID - the id of the parent entitychildIdType - the type of children entitieschildIDs - Collection of children id's
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||