So, I've been programming for what is a probably a little bit and made a very simple logging system for my personal projects. While it works out fairly well so far, I would like advice on how to make it perform better and stuff I can do to make it more usable in general.
- Is my code thread safe? If not, how do I make it thread safe?
- Is there a way to make the interface a bit cleaner for use? Right now
# define
feels a bit hacky.
- Is there a way to avoid the use of a global
unique_ptr
?
- Should I just make it a header only library? Is there any benefits in doing so?
Is my code thread safe? If not, how do I make it thread safe?
Is there a way to make the interface a bit cleaner for use? Right now # define
feels a bit hacky.
Is there a way to avoid the use of a global unique_ptr
?
Should I just make it a header only library? Is there any benefits in doing so?
In addition to this I would appreciate any other advice on how to improve the system.
Code as it is now:
HPPhpp:
CPP.cpp:
Thanks!