public interface PaxLoggingEvent
Framework library agnostic representation of logging event that may be filtered
and/or directed to an appender.
The methods are inspired by Log4J1 equivalents. Other frameworks don't necessarily have all the information.
| Modifier and Type | Method and Description |
|---|---|
String |
getFQNOfLoggerClass()
Fully qualified class name (FQCN) helps identifying the location
of logging statement, by examining call trace to find where user code invoked logging method.
|
PaxLevel |
getLevel()
Severity/level/importance of the
logging event. |
PaxLocationInfo |
getLocationInformation()
Place where the logging event was created (e.g.,
log.info("message") was called). |
String |
getLoggerName()
Name of the logger is its category (usually in dot-separated convention),
usually set in factory method of
logfactory.getLog("name"). |
String |
getMessage()
Actual message carried by given logging event.
|
Map<String,Object> |
getProperties()
Properties associated with logging event - usually MDC.
|
String |
getRenderedMessage()
When message is not a String, rendered message is Stringified version of
the message object.
|
String |
getThreadName()
Thread name associated with logging event.
|
String[] |
getThrowableStrRep()
Array of Strings representation of stack trace at the point where logging event was created.
|
long |
getTimeStamp()
Timestamp for the moment when the logging event was created.
|
boolean |
locationInformationExists()
getLocationInformation() may not always be available (e.g., when compiled without debug
information). |
PaxLocationInfo getLocationInformation()
log.info("message") was called).PaxLevel getLevel()
logging event.String getLoggerName()
logfactory.getLog("name").String getFQNOfLoggerClass()
String getMessage()
String getRenderedMessage()
String getThreadName()
logger.info() method).String[] getThrowableStrRep()
boolean locationInformationExists()
getLocationInformation() may not always be available (e.g., when compiled without debug
information).long getTimeStamp()
Copyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.