I have a proposal for a simple solution: set a flag in the current Configuration instance, and check for this flag. The Configuration instance provides a task-specific context persisting throughout the lifetime of a task - but limited only to that task. Voila - problem solved. We get rid of the dubious use of LogFormatter (I hope Chris that even you would agree that this pattern is slightly .. unusual ;) ), and we gain flexible mechanism limited in scope to the current task, which ensures isolation from other tasks in the same JVM. How about that?
Wonderful idea!!!! :-D
+ 1

Reply via email to