I have a component, which my application create multiple instance...
What i want is to log each compoent instance to different file..
To be more clear,
- My application create same component instance such as c1,..ck,....cn...
- Each instance should log into diffferent log file such as ck will log to file logfile-k
- But ck should not log to other log files such as ck-1 or ck+1 -
- I should able to give dynamically log file names
How can i do it in Log4j or log4net?