Package com.helger.commons.log
Class LogMessage
- java.lang.Object
-
- com.helger.commons.log.LogMessage
-
- All Implemented Interfaces:
IHasErrorLevel,IHasErrorLevelComparable<LogMessage>,ISeverityComparable<LogMessage>,IErrorIndicator,ISuccessIndicator,IGenericImplTrait<LogMessage>
@Immutable public class LogMessage extends Object implements IHasErrorLevelComparable<LogMessage>
Represents a single log message.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description LogMessage(IErrorLevel aErrorLevel, Serializable aMsg, Throwable aThrowable)LogMessage(LocalDateTime aIssueDT, IErrorLevel aErrorLevel, Serializable aMsg, Throwable aThrowable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IErrorLevelgetErrorLevel()LocalDateTimegetIssueDateTime()SerializablegetMessage()ThrowablegetThrowable()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Methods inherited from interface com.helger.commons.error.level.IHasErrorLevel
hasErrorLevel, isError, isFailure, isNoError, isSuccess
-
Methods inherited from interface com.helger.commons.error.level.IHasErrorLevelComparable
compareTo, isEQ, isGE, isGT, isLE, isLT, isNE
-
Methods inherited from interface com.helger.commons.state.ISuccessIndicator
and, or
-
-
-
-
Constructor Detail
-
LogMessage
public LogMessage(@Nonnull IErrorLevel aErrorLevel, @Nonnull Serializable aMsg, @Nullable Throwable aThrowable)
-
LogMessage
public LogMessage(@Nonnull LocalDateTime aIssueDT, @Nonnull IErrorLevel aErrorLevel, @Nonnull Serializable aMsg, @Nullable Throwable aThrowable)
-
-
Method Detail
-
getIssueDateTime
@Nonnull public LocalDateTime getIssueDateTime()
-
getErrorLevel
@Nonnull public IErrorLevel getErrorLevel()
- Specified by:
getErrorLevelin interfaceIHasErrorLevel- Returns:
- The error level of this object. May not be
null.
-
getMessage
@Nonnull public Serializable getMessage()
-
-