Package org.apache.felix.hc.api
Class ResultLog.Entry
- java.lang.Object
-
- org.apache.felix.hc.api.ResultLog.Entry
-
- Enclosing class:
- ResultLog
public static class ResultLog.Entry extends java.lang.Object
An entry in this log
-
-
Constructor Summary
Constructors Constructor Description Entry(java.lang.String message, boolean isDebug)
Entry(java.lang.String message, boolean isDebug, java.lang.Exception exception)
Entry(Result.Status s, java.lang.String message)
Entry(Result.Status s, java.lang.String message, java.lang.Exception exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
java.lang.String
getLogLevel()
java.lang.String
getMessage()
Result.Status
getStatus()
boolean
isDebug()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Entry
public Entry(Result.Status s, java.lang.String message)
- Parameters:
s
- The status of the messagemessage
- The message
-
Entry
public Entry(java.lang.String message, boolean isDebug)
- Parameters:
message
- The message with status OKisDebug
- Whether this is a debug message
-
Entry
public Entry(java.lang.String message, boolean isDebug, java.lang.Exception exception)
- Parameters:
message
- The message with status OKisDebug
- Whether this is a debug messageexception
- An exception that belongs to this message
-
Entry
public Entry(Result.Status s, java.lang.String message, java.lang.Exception exception)
- Parameters:
s
- The status of the messagemessage
- The messageexception
- An exception that belongs to this message
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getStatus
public Result.Status getStatus()
- Returns:
- The status of this entry
-
getLogLevel
public java.lang.String getLogLevel()
- Returns:
- The log level of this entry
-
getMessage
public java.lang.String getMessage()
- Returns:
- The message of this entry
-
getException
public java.lang.Exception getException()
- Returns:
- The exception of this entry or null if no exception exists for this message
-
isDebug
public boolean isDebug()
- Returns:
- true if this is a debug message
-
-