My program doesn't support thread safe logging while using boost library
问题 I am currently creating a class that should be used for logging purpose. But here one problem , it doesn't support thread synchronization. There is no problem when I run one by one thread. But there is problem while I run two or more threads at a time. Problem I am facing is: "If I create two threads to create two separate logs , but Two threads are colliding and write its log messages to both the files". If anyone find the problem , please help me to resolve it. BoostLogger.h : #pragma once