Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why can I not create multiple loggers using dynamic instance id? #255

Open
rajendrasp opened this issue Jun 12, 2023 · 1 comment
Open
Labels

Comments

@rajendrasp
Copy link

I want to create a new log file for each thread in my process. How to do that?

@SergiusTheBest
Copy link
Owner

This sample does very close to what do you want: https://github.com/SergiusTheBest/plog/blob/dynamic-instances/samples/Dynamic11/Main.cpp. It's not merged yet (it lacks documentation). You can modify it to use thread_local and thus there will be a log per thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants