Logging in multiple files

Hi guys,

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 ??
Do you mean something like this?:
1
2
3
4
5
6
#ifndef EZ_LOGGING
#define EZ_LOGGING

//CODE CODE CODE

#endif 


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?
Last edited on
Topic archived. No new replies allowed.