Provide file, function & line number in logging calls. Unfortunately, logging2 doesn't support stacklevel (which logging added in 3.8), which would make this easy.
Submitted issue asking for stacklevel to logging2.
When working, put {source}:{function:s}:{line:d} in logger templates in debug log config files.
Also fix in wc_sim.