public class LogEvent
extends java.lang.Object
Constructor and Description |
---|
LogEvent() |
LogEvent(LogSource source,
java.lang.String tag) |
LogEvent(LogSource source,
java.lang.String tag,
java.lang.Object msg) |
LogEvent(java.lang.String tag) |
LogEvent(java.lang.String tag,
java.lang.Object msg) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(java.lang.Object msg) |
void |
addMessage(java.lang.String tagname,
java.lang.String message) |
void |
dump(java.io.PrintStream p,
java.lang.String outer) |
protected java.lang.String |
dumpHeader(java.io.PrintStream p,
java.lang.String indent) |
protected void |
dumpTrailer(java.io.PrintStream p,
java.lang.String indent) |
java.time.Instant |
getCreatedAt() |
java.util.List<java.lang.Object> |
getPayLoad()
WARNING: payLoad is a SynchronizedList.
|
java.lang.String |
getRealm() |
LogSource |
getSource() |
java.lang.String |
getTag() |
boolean |
isHonorSourceLogger()
This is a hack for backward compatibility after accepting PR67
|
void |
setNoArmor(boolean noArmor) |
void |
setSource(LogSource source) |
void |
setTag(java.lang.String tag) |
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String indent) |
public LogEvent(java.lang.String tag)
public LogEvent()
public LogEvent(java.lang.String tag, java.lang.Object msg)
public LogEvent(LogSource source, java.lang.String tag)
public LogEvent(LogSource source, java.lang.String tag, java.lang.Object msg)
public java.time.Instant getCreatedAt()
public java.lang.String getTag()
public void setTag(java.lang.String tag)
public void addMessage(java.lang.Object msg)
public void addMessage(java.lang.String tagname, java.lang.String message)
public LogSource getSource()
public void setSource(LogSource source)
public void setNoArmor(boolean noArmor)
protected java.lang.String dumpHeader(java.io.PrintStream p, java.lang.String indent)
protected void dumpTrailer(java.io.PrintStream p, java.lang.String indent)
public void dump(java.io.PrintStream p, java.lang.String outer)
public java.lang.String getRealm()
public java.util.List<java.lang.Object> getPayLoad()
synchronized (evt.getPayLoad()) { Iterator iter = evt.getPayLoad().iterator(); while (iter.hasNext()) { ... ... } }
public java.lang.String toString(java.lang.String indent)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isHonorSourceLogger()