public static class LoggerHelper.LogRecord extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected int |
level
the severity of the event
|
protected String |
message
the msg for the event
|
protected long |
offset
the offset of logRecord in stream.
|
protected String |
text
the string represention of logEvent, transient since we use a lazy getter
we don't need to store it.
|
protected String[] |
throwableStrRep
the throwable details the event
|
protected long |
timeStamp
the time of the event
|
Modifier | Constructor and Description |
---|---|
protected |
LogRecord(int level,
long timestamp,
String message,
String filename,
String methodName,
int lineNumber,
String[] throwableStrRep) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
We base the identiy of a LogEvent on the message, level and timestamp
|
int |
getLevel() |
int |
getLineNumber() |
String |
getMessage() |
String |
getMethodName() |
long |
getOffset() |
String[] |
getThrowableStrRep() |
long |
getTimeStamp() |
int |
hashCode() |
static LoggerHelper.LogRecord |
newInstance(fr.ifremer.isisfish.logging.LogLevel level,
long timestamp,
String message,
String fileName,
String methodName,
int lineNumber,
String[] errors) |
void |
setOffset(long offset) |
String |
toString()
We use a cache for the representation since we will use a lots of time.
|
protected long timeStamp
protected String message
protected int level
protected String[] throwableStrRep
protected transient String text
protected transient long offset
protected LogRecord(int level, long timestamp, String message, String filename, String methodName, int lineNumber, String[] throwableStrRep) throws UnsupportedEncodingException
UnsupportedEncodingException
public static LoggerHelper.LogRecord newInstance(fr.ifremer.isisfish.logging.LogLevel level, long timestamp, String message, String fileName, String methodName, int lineNumber, String[] errors) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getMessage()
public int getLevel()
public String[] getThrowableStrRep()
public long getTimeStamp()
public int getLineNumber()
public String getMethodName()
public long getOffset()
public void setOffset(long offset)
public String toString()
public boolean equals(Object o)
Copyright © 1999–2019 CodeLutin. All rights reserved.