plog icon indicating copy to clipboard operation
plog copied to clipboard

Log Message printed on Multiple times on Windows DLL when passing same log instance from .exe

Open harikutty5896 opened this issue 1 year ago • 1 comments

Example log message printing format : 10520 2023-05-18 13:51:52.192 INFO [24880] [Person::Init@13] Hello 10520 2023-05-18 13:51:52.192 INFO [24880] [Person::Init@13] Hello 10520 2023-05-18 13:51:52.192 INFO [24880] [Person::Init@13] Hello 10520 2023-05-18 13:51:52.192 INFO [24880] [Person::AddData@18] Data Added Successfully 10520 2023-05-18 13:51:52.192 INFO [24880] [Person::AddData@18] Data Added Successfully 10520 2023-05-18 13:51:52.192 INFO [24880] [Person::AddData@18] Data Added Successfully

I am using same log instance on exe and DLL , On .exe it working well, but on DLL messages printed on multiple times even on same thread ID.

harikutty5896 avatar May 19 '23 07:05 harikutty5896

Hi @harikutty5896 !

Could you post a code with plog initialization?

SergiusTheBest avatar May 22 '23 18:05 SergiusTheBest