# Function Exception Logging: Capturing Source

**URL:** <https://forum.inductiveautomation.com/t/function-exception-logging-capturing-source/93156>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [July 12, 2024, 4:51pm UTC](https://forum.inductiveautomation.com/t/function-exception-logging-capturing-source/93156 "2024-07-12T16:51:00Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 12, 2024, 5:37pm UTC](https://forum.inductiveautomation.com/t/function-exception-logging-capturing-source/93156/6 "2024-07-12T17:37:57Z")

</div>

Probably:  
In one thread:  
`org.slf4j.MDC.getCopyOfContextMap()`

In the other thread:  
`org.slf4j.MDC.setContextMap(map)`

---

_[View the full topic](https://forum.inductiveautomation.com/t/function-exception-logging-capturing-source/93156)._
