Hello,

LogEvent#getContextData() returns a ReadOnlyStringMap such that the
provided get() and forEach() allow non-String values in the entries. That
said, ReadOnlyStringMap#toMap() returns a Map<String, String>. Further,
both ThreadContext.put() and ThreadContext.putAll() only allow String
values. I am confused by this inconsistency. Is there a way to provide an
MDC entry where the value is of a non-String type?

Best.

Reply via email to