os_log does not show source information

We are using Universal logging facility for our product. Product is built via Xcode. The product's workspace consists of multiple projects (dynamic/static libs, executables, system extension, applications) The code is a mix of CPP/Objective C/Swift, when CPP is a major language.
We expected oslog facility to output source information such as file name, module, function, source code line, but it does not happen neither in debug nor in release build. Is there anything we can do, beside adding the required constants explicitly to the oslog calls?

We tried to run a simpler project with the same usage of os_log facility and got controversial results. There were full source info in the debug build:
Code Block
2020-10-07 11:30:45.194143+0300 0x15abcf  Error    0x0         57515 0  <aaaa`f1() (main.cpp:23)> aaaa: [com.aa.bb:HHHHH] qqqfault:


And partial source info in the release build:
Code Block
2020-10-07 13:02:19.072344+0300 0x16c5ee  Error    0x0         58416 0  <aaaa`f1() (.cold.1)> aaaa: [com.aa.bb:HHHHH] qqqfault:

os_log does not show source information
 
 
Q