diff --git a/src/main/java/org/jboss/logmanager/ExtLogRecord.java b/src/main/java/org/jboss/logmanager/ExtLogRecord.java index 9b03375a..8e7d08de 100644 --- a/src/main/java/org/jboss/logmanager/ExtLogRecord.java +++ b/src/main/java/org/jboss/logmanager/ExtLogRecord.java @@ -244,6 +244,16 @@ public Map getMdcCopy() { return newMdc; } + /** + * Get a copy of all the MDC properties for this log record without conversions. If the MDC has not yet been copied, this method will copy it. + * + * @return a copy of the MDC map + */ + public Map getExactMdcCopy() { + copyMdc(); + return mdcCopy.clone(); + } + /** * Change an MDC value on this record. If the MDC has not yet been copied, this method will copy it. *