com.levigo.util.log.qualified
Class ResolvedQualifiedLogEvent
java.lang.Object
com.levigo.util.log.qualified.ResolvedQualifiedLogEvent
- All Implemented Interfaces:
- QualifiedLogEvent, QualifiedMessage, Serializable
public class ResolvedQualifiedLogEvent
- extends Object
- implements QualifiedLogEvent
- See Also:
- Serialized Form
ResolvedQualifiedLogEvent
public ResolvedQualifiedLogEvent(QualifiedLogEvent log)
ResolvedQualifiedLogEvent
public ResolvedQualifiedLogEvent(Level level,
String msgId,
String message,
Throwable t)
getThrowable
public Throwable getThrowable()
- Description copied from interface:
QualifiedLogEvent
- returns a associated
Throwable
which may be the cause of the
QualifiedLogEvent
.
- Specified by:
getThrowable
in interface QualifiedLogEvent
- Returns:
- a associated
Throwable
or null
getId
public String getId()
- Description copied from interface:
QualifiedMessage
- returns the message id of this logging event in the format
COMPONENT_ID-EVENT_ID
.
The COMPONENT_ID and EVENT_ID may contain arbitrary characters
except the dash (-
).
- Specified by:
getId
in interface QualifiedMessage
- Returns:
getMessage
public String getMessage()
- Description copied from interface:
QualifiedMessage
- Resolves and returns the human-readable message text of this qualified
entity using the current default locale, i.e. the one returned by
Locale.getDefault()
.
Caveats:
- Resolving the message text may consume an unpredictable amount of
time.
- Message IDs are not guaranteed to be accompanied with a human-readable
message. Therefore this method may return
null
.
- Specified by:
getMessage
in interface QualifiedMessage
- Returns:
- a human readable message text for this QualifiedMessage entity.
toString
public String toString()
- Overrides:
toString
in class Object
getLevel
public Level getLevel()
- Specified by:
getLevel
in interface QualifiedLogEvent
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.