i am developing Framework for my project.My requirement is logging and Audting.My doubt:is it possible to sent some log messages to database and some log messages to file using same properties file Can anybody help me how to do..it is helpful to sent code for that.
thanks
Regards
gurudev
Pavan Panduga
Ranch Hand
Joined: Jun 12, 2002
Posts: 68
posted
0
Gurudev,
Yes, it is possible to send log messages to more than one destination. You have to configure appropriate Appenders in the log4j configuration file and you'll be all set.
In the Log4J distribution there's an example to show multiple destination configurations, It is configured to send messages to a File and GUI at the same time. So you may want to look for examples to look for JDBCAppenders.