Re: Logging using commons.logging
Ritvik wrote: Hi There, In our system we have a requirement to generate two seperate logs, system log and auditing log. The system log must log details of request and processing details. This log is mainly used by developer at the time of debugging and maintenance. The auditing log is used for auditing purposes by business community to audit access to the system by various users. What would be the best solution to acheive the above? Does commons.logging and default SimpleLog implementation will allow me to set different logs and print the message in them? I haven't seen any example explaining how to configure the logging toolkit to send message to a specific output file? Any suggestions would help, Wouldn't the simplest thing be to create two Log instances, and write a partcular message to whichever one is appropriate? Something like this: private static Log systemLog = LogFactory.getLog(SystemLog); private static Log auditLog = LogFactory.getLog(AuditLog); You'll need to use a real logging implementation underneath (Log4J or JDk 1.4 logging) so that you can configure the two logs to two different output streams, because SimpleLog writes everythng to a single stream. Follow the standard Log4J or JDK 1.4 docs to configure where SystemLog and AuditLog go. Ritvik Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Logging using commons.logging
Hi There, In our system we have a requirement to generate two seperate logs, system log and auditing log. The system log must log details of request and processing details. This log is mainly used by developer at the time of debugging and maintenance. The auditing log is used for auditing purposes by business community to audit access to the system by various users. What would be the best solution to acheive the above? Does commons.logging and default SimpleLog implementation will allow me to set different logs and print the message in them? I haven't seen any example explaining how to configure the logging toolkit to send message to a specific output file? Any suggestions would help, Ritvik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Logging using commons.logging
Try this : http://www.vipan.com/htdocs/log4jhelp.html Ritvik wrote: Hi There, In our system we have a requirement to generate two seperate logs, system log and auditing log. The system log must log details of request and processing details. This log is mainly used by developer at the time of debugging and maintenance. The auditing log is used for auditing purposes by business community to audit access to the system by various users. What would be the best solution to acheive the above? Does commons.logging and default SimpleLog implementation will allow me to set different logs and print the message in them? I haven't seen any example explaining how to configure the logging toolkit to send message to a specific output file? Any suggestions would help, Ritvik - 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]