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>
Represents a single log message.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionLogMessage(IErrorLevel aErrorLevel, Serializable aMsg, Throwable aThrowable) LogMessage(LocalDateTime aIssueDT, IErrorLevel aErrorLevel, Serializable aMsg, Throwable aThrowable) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.error.level.IHasErrorLevel
hasErrorLevel, isError, isFailure, isNoError, isSuccessMethods inherited from interface com.helger.commons.error.level.IHasErrorLevelComparable
compareTo, isEQ, isGE, isGT, isLE, isLT, isNEMethods inherited from interface com.helger.commons.state.ISuccessIndicator
and, or
-
Constructor Details
-
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 Details
-
getIssueDateTime
-
getErrorLevel
- Specified by:
getErrorLevelin interfaceIHasErrorLevel- Returns:
- The error level of this object. May not be
null.
-
getMessage
-
getThrowable
-
toString
-