Map MDC and NDC to CustomProperties
Capture the message passed to the logger