Hi

If your application is single threaded, means only one activity occurs at the 
sime time, you easily can use NDC and Filters: Declare one appender per 
activity which filters only the messages of the belonging activity. The needed 
NDC value is set at the beginning of activity and removed at the end.

If more than one activity happen at the same time, things get more complicated. 
One way is to separate logging universes by using different LoggerRepositories 
(one per activity) and a self written RepositorySelector. Search list, this was 
discussed a lot of times. 

Heri

> -----Original Message-----
> From: sudhakardvvn [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 16, 2006 12:59 PM
> To: log4j-user@logging.apache.org
> Subject: [SPAM (Bayesain Analysis)] - different logfile - Bayesian
> Filter detected spam
> 
> 
> 
> Hi,
> I want to know how can we use different log fiels for one 
> application for
> different functionalities. for example I have to 
> funcationalities in the
> application like registerUser() and granstAccessToUser()
> Thanks
> Sudhakar
> -- 
> View this message in context: 
> http://www.nabble.com/different-logfile-tf2114594.html#a5830306
> Sent from the Log4j - Users forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to