At the moment I am creating a logfunction. I implemented two ILog objects, e.g. logger1 and logger2. I also create two custom appenders (appender1 and appender2) inheriting the AppenderSkeleton class. These appenders create the correct string in the Append method and fires an event.
The problem that I am experiencing is:
The application logs for example:
logger1.Info("test message logger 1");
logger2.Info("test message logger 2");
When I create and activate only logger 2, the Append method of logger2 receives the loglines of logger1 too. How to solve this problem?
I think it is due to the custom appenders aren't connected to a specific log object.
What's the best implemention for this problem?