On Jun 9, 2008, at 4:57 AM, Pradeep Kumar PALAPARTHY wrote:

Hi,

I have a multi threaded application.
There are multiple task getting created in the application which will log to a separate log file.

For each task the log file initialization happens in AbstractTaskComponent as follows:

        // get the log directory
File taskLogDir = TaskControllerComponent .getTaskControllerComponent().getTaskLogDirectory(); File taskLogFile = new File( taskLogDir, task.getTskId() + ".log" ); taskLogRejectedFile = new File( taskLogDir, task.getTskId() + ".rejected.rawrecord.log" );


...

Still some times the log getting mixed up(one task log in another task file). But this happens once in a while

I was unable to find in what scenario it is going wrong.

Any help would be appreciated.

Regards,
Pradeep


Hope you have found the problem in the interim. Your example appears to be Java but you posted to the log4cxx-user mailing list. You may have better luck if post to the log4j-user mailing list. However there isn't enough to reproduce your problem since you do not provide the code for ThreadFilter or ThreadGroupFilter which are likely suspects. If they happen to return NEUTRAL, you may need either to add a final DenyAllFilter to finally reject all events that were not explicitly matched by earlier filters.

Reply via email to