Hi, Currently i am working on log4j stuff for my application. I have a specific requirement of logging. I need to define a logger for a specific call hierarchy. Meaning all the log messages of a specific call hierarchy should go to a specific appeneder.
Example
AddFormAction(method1) ---|--- FormBusinessObject(method4) --|-- FormDAOObject(method5)
EditFormAction(method2) -----|---- FormBusinessObject(method4) --|-- FormDAOObject(method5)
DeleteFormAction(method3)----|--- FormBusinessObject(method4) --|-- FormDAOObject(method5)
I want to define a logger for a specific call hierarchy 1 - 4 -5. These messages should goto addform.log.
I don't want the messages from 2-4-5 or 3-4-5 call hierarchies to go to addform.log.
Hope iam clear on my requirement. Any help is highly appreciated. Thanks all in advance for your replies.