public class LogMessage extends AbstractMessage
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(Attachment attachment)
Deprecated.
pass all attachments to
createEvent(Throwable, String, Attachment...) |
static IdeaLoggingEvent |
createEvent(java.lang.Throwable throwable,
java.lang.String userMessage,
Attachment... attachments) |
java.util.List<Attachment> |
getAllAttachments()
Returns a (possibly empty) list of all attachments.
|
java.lang.String |
getMessage()
Returns a user message (see
createEvent(java.lang.Throwable, java.lang.String, com.intellij.openapi.diagnostic.Attachment...) ), if present. |
java.lang.Throwable |
getThrowable() |
java.lang.String |
getThrowableText() |
getAdditionalInfo, getAppInfo, getAssigneeId, getAttachments, getDate, getIncludedAttachments, getSubmissionInfo, isRead, isSubmitted, isSubmitting, setAdditionalInfo, setAppInfo, setAssigneeId, setOnReadCallback, setRead, setSubmitted, setSubmitting
public java.lang.Throwable getThrowable()
getThrowable
in class AbstractMessage
public java.lang.String getThrowableText()
getThrowableText
in class AbstractMessage
public java.lang.String getMessage()
AbstractMessage
createEvent(java.lang.Throwable, java.lang.String, com.intellij.openapi.diagnostic.Attachment...)
), if present.getMessage
in class AbstractMessage
public java.util.List<Attachment> getAllAttachments()
AbstractMessage
getAllAttachments
in class AbstractMessage
@Deprecated public void addAttachment(Attachment attachment)
createEvent(Throwable, String, Attachment...)
public static IdeaLoggingEvent createEvent(java.lang.Throwable throwable, java.lang.String userMessage, Attachment... attachments)
userMessage
- user-friendly message description (short, single line if possible)attachments
- attachments that will be suggested to include to the report