public class LogMessage extends Object implements LogMessageInterface
Constructor and Description |
---|
LogMessage(String subject,
LogLevel level)
Backward compatibility : no registry used, just log the subject as part of the message
|
LogMessage(String message,
String logChannelId,
LogLevel level)
Recommended use :
|
LogMessage(String message,
String logChannelId,
Object[] arguments,
LogLevel level) |
Modifier and Type | Method and Description |
---|---|
Object[] |
getArguments() |
String |
getCopy() |
LogLevel |
getLevel() |
String |
getLogChannelId() |
String |
getMessage() |
String |
getSubject() |
boolean |
isError() |
void |
setArguments(Object[] arguments) |
void |
setCopy(String copy) |
void |
setLevel(LogLevel level) |
void |
setLogChannelId(String logChannelId) |
void |
setMessage(String message) |
void |
setSubject(String subject) |
String |
toString() |
public LogMessage(String subject, LogLevel level)
message
- logChannelId
- public LogMessage(String message, String logChannelId, LogLevel level)
message
- logChannelId
- level
- the log levelpublic LogLevel getLevel()
getLevel
in interface LogMessageInterface
public void setLevel(LogLevel level)
public String getMessage()
getMessage
in interface LogMessageInterface
public void setMessage(String message)
message
- the message to setpublic String getSubject()
getSubject
in interface LogMessageInterface
public void setSubject(String subject)
subject
- the subject to setpublic String getLogChannelId()
getLogChannelId
in interface LogMessageInterface
public void setLogChannelId(String logChannelId)
logChannelId
- the logChannelId to setpublic Object[] getArguments()
getArguments
in interface LogMessageInterface
public void setArguments(Object[] arguments)
arguments
- the arguments to setpublic boolean isError()
public String getCopy()
getCopy
in interface LogMessageInterface
public void setCopy(String copy)