Loggers don't need to be named after classes. For instance, you could have "AUDIT.create" and "AUDIT.manage" loggers which you use to log applicable activities. You can use these audit loggers anywhere you need them, regardless of class or package. You can also have loggers named after your classes for general debugging.
Jake At 03:50 AM 10/20/2007, you wrote: > >Hi everybody, > >I had written a web application for some banking project in Struts. The >problem is i have categorized the ActionForm classes into one package, >Action classes in one package and so on. Now i have to log the logging >information in to two different log files that contains, like in one log >file all the creation of accounts information must be logged and in other >log file Viewing of balance info, transfer and so on log information and may >be all the error information in to one more log file. I want to write the >configuration file in an xml file. can any one tell me how this can be >possible. ie how we are going to categorize logging information into >different log files base on the fucntionality of our application. I feel >happy if any one can come with code. > >I am using Struts and Log4JLogger. > >Thanks in advance. >-- >View this message in context: >http://www.nabble.com/writing-log4j-for-my-application-tf4657281.html#a13307974 >Sent from the Log4j - Dev mailing list archive 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]
