Class LogEvent
java.lang.Object
org.jpos.util.LogEvent
- Direct Known Subclasses:
FrozenLogEvent, MarkdownLogEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(Object msg) voidaddMessage(String tagname, String message) voiddump(PrintStream p, String outer) protected StringdumpHeader(PrintStream p, String indent) protected voiddumpTrailer(PrintStream p, String indent) WARNING: payLoad is a SynchronizedList.getRealm()getTag()booleanbooleanThis is a hack for backward compatibility after accepting PR67voidsetNoArmor(boolean noArmor) voidvoidtoString()withSource(LogSource source) withTraceId(String traceId) withTraceId(UUID uuid)
-
Constructor Details
-
LogEvent
-
LogEvent
public LogEvent() -
LogEvent
-
LogEvent
-
LogEvent
-
-
Method Details
-
getTag
-
setTag
-
addMessage
-
addMessage
-
getSource
-
setSource
-
setNoArmor
-
dumpHeader
-
dumpTrailer
-
dump
-
getRealm
-
withTraceId
-
withTraceId
-
withSource
-
add
-
withTraceId
-
getTraceId
-
getPayLoad
WARNING: payLoad is a SynchronizedList. If you intend to get a reference to it in order to iterate over the list, you need to synchronize on the returned object.synchronized (evt.getPayLoad()) { Iterator iter = evt.getPayLoad().iterator(); while (iter.hasNext()) { ... ... } }- Returns:
- payLoad, which is a SynchronizedList
-
toString
-
toString
-
hasException
-
isHonorSourceLogger
This is a hack for backward compatibility after accepting PR67- Returns:
- true if ISOSource has been set
- See Also:
-
getDumpedAt
-
getCreatedAt
-