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 HariharanElancheliyan opened this issue 2 years 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.

HariharanElancheliyan avatar May 19 '23 07:05 HariharanElancheliyan

Hi @harikutty5896 !

Could you post a code with plog initialization?

SergiusTheBest avatar May 22 '23 18:05 SergiusTheBest