Custom Fields might lead to "java.lang.UnsupportedOperationException" with log4j2 #135
Labels
good-first-issue
This issue is easy to implement. It can be taken to get into contributing ot the library.
log4j
This issue is concerned with the log4j integration.
Custom fields can be added to log messages by using the
CustomField
class:This can result in the following stacktrace:
The current implementation of
com.sap.hcp.cf.log4j2.converter.ContextPropsConverter.addCustomFieldsFromArguments
does not reflect, thatevent.getContextData().toMap()
might return an unmodifiable map. This needs to be changed to avoid that error.The text was updated successfully, but these errors were encountered: