xmlBlaster 2.2.0 client API

org.xmlBlaster.util.log
Class StdoutStderrRedirector

java.lang.Object
  extended by org.xmlBlaster.util.log.StdoutStderrRedirector

public final class StdoutStderrRedirector
extends java.lang.Object

Rebind System.out and System.err to java.util.logging.

Activate with -xmlBlaster/stdoutStderrToLogging true -xmlBlaster/stdoutSuppressSet sometoken;someothertoken -xmlBlaster/stderrSuppressSet sometoken;someothertoken
The -xmlBlaster/stdoutSuppressSet allows to suppress some messages which flood your log file

Caution: A ConsoleAppender will log to System.out and end up here as well and will be redirected to the log file

Author:
Marcel Ruff

Constructor Summary
StdoutStderrRedirector(java.lang.String[] filterSetOut, java.lang.String[] filterSetErr)
           
StdoutStderrRedirector(java.lang.String filterStringOut, java.lang.String filterStringErr, java.lang.String filterSeperator)
           
 
Method Summary
 boolean redirect()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdoutStderrRedirector

public StdoutStderrRedirector(java.lang.String filterStringOut,
                              java.lang.String filterStringErr,
                              java.lang.String filterSeperator)
Parameters:
filterString - "Property;Startup"
filterSeperator - ";"

StdoutStderrRedirector

public StdoutStderrRedirector(java.lang.String[] filterSetOut,
                              java.lang.String[] filterSetErr)
Method Detail

redirect

public boolean redirect()

reset

public void reset()

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.