[jboss-user] [JBoss jBPM] - Re: Disabling DBLoggingService
jbaton
do-not-reply at jboss.com
Tue Sep 12 04:11:06 EDT 2006
A way is to replace the DBLoggingFactory by some own 'do nothing' implementation.
1/ Create a service
public class NothingLoggingService implements LoggingService {
| public static Logger LOG = Logger.getLogger(NothingLoggingService.class);
|
| public void log(ProcessLog processLog) {
| LOG.debug( processLog.toString() );
| }
|
| public void close() {
| }
| }
|
2/ Create a service
| public class NothingLoggingServiceFactory implements ServiceFactory {
| public Service openService() {
| return new NothingLoggingService();
| }
|
| public void close() {
| }
|
| }
|
3/ Cut and paste default xml config (from jar) into jbpm.cfg.xml
4/ Link the "logging" service, to your own implementation
| <service name="logging" factory="........."/>
|
JBaton
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970920#3970920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970920
More information about the jboss-user
mailing list