public class SimpleLogRecord extends Object implements LogRecord
ISO8601_TIMESTAMP_FORMAT
Constructor and Description |
---|
SimpleLogRecord() |
Modifier and Type | Method and Description |
---|---|
LogLevel |
getLevel()
Get log level
|
String |
getMessage()
Get message
|
List<String> |
getStackTrace()
Get stack trace as list of strings
|
String |
getThreadName()
Get thread name
|
Date |
getTime()
Get date time
|
void |
setLevel(LogLevel level)
Set log level
|
void |
setMessage(String message)
Set message
|
void |
setStackTrace(List<String> stackTrace)
Set stack trace as list of strings
|
void |
setThreadName(String threadName)
Set thread name
|
void |
setTime(Date time)
Set date time
|
String |
toString() |
public String getMessage()
LogRecord
getMessage
in interface LogRecord
public List<String> getStackTrace()
LogRecord
getStackTrace
in interface LogRecord
public String getThreadName()
LogRecord
getThreadName
in interface LogRecord
public void setLevel(LogLevel level)
level
- public void setMessage(String message)
message
- textpublic void setStackTrace(List<String> stackTrace)
stackTrace
- list of stringspublic void setThreadName(String threadName)
threadName
- public void setTime(Date time)
time
- timeCopyright © 2015-2020 Eclipse Foundation. All Rights Reserved.