title: Log from a dynamically loaded library
body: <p>I have a C++ desktop app that can log messages using the 'spdlog' library (<a href="https://github.com/gabime/spdlog" rel="nofollow noreferrer">https://github.com/gabime/spdlog</a>). Now, I'd like to use the same logger from a dynamically loaded DLL. However, when I try to use spdlog from the DLL, I get a crash.</p>
  
  <p>How can I setup the dynamically-loaded DLL to use the same logger as the main app?</p>