I am working on one application that requires extensive logging so I want to create a log file of each day during execution.
I tried easylogging++ but i am unable to use into multiple files. If i try to use in other file. I get compilation errors of using same functions or methods already defined. What should i do to fix this ?
How can i use macro to hide the implementation of logging in one class to other ??
You could use something like that to make sure that their header is only included once (personally I would be surprised if this library doesn't already do that). But my guess is that, overall, you would be better off isolating the logging component of your application a little more. Can we see some pseudo code to illustrate how you have this organized?
EDIT: It does do that, I just looked. How do you have this organized OP? This isn't because of this header. Could you copy and paste some of the errors you are getting?