Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/main/java/org/jboss/logmanager/ExtLogRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,16 @@ public Map<String, String> 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<String, Object> 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.
*
Expand Down