de.unkrig.commons.util.logging.handler
Class StreamHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by java.util.logging.StreamHandler
          extended by de.unkrig.commons.util.logging.handler.AbstractStreamHandler
              extended by de.unkrig.commons.util.logging.handler.StreamHandler

public class StreamHandler
extends AbstractStreamHandler

A log record handler which writes formatted records to an OutputStream which must be specified through a ".outputStream" logging property.

Example 'logging.properties' setup:

 .handlers = de.unkrig.commons.util.logging.handler.StreamHandler
 de.unkrig.commons.util.logging.handler.StreamHandler.outputStream=\
    de.unkrig.commons.net.stream.PassiveSocketOutputStream(9999)
 


Constructor Summary
StreamHandler()
          No-arg constructor for the LogManager.
StreamHandler(java.io.OutputStream outputStream, boolean autoFlush, java.util.logging.Level level, java.util.logging.Filter filter, java.util.logging.Formatter formatter, java.lang.String encoding)
           
StreamHandler(java.lang.String propertyNamePrefix)
          Single-arg constructor to be used by proxies.
 
Method Summary
 
Methods inherited from class de.unkrig.commons.util.logging.handler.AbstractStreamHandler
publish
 
Methods inherited from class java.util.logging.StreamHandler
close, flush, isLoggable, setEncoding, setOutputStream
 
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamHandler

public StreamHandler()
              throws ParseException,
                     EvaluationException
No-arg constructor for the LogManager.

Throws:
ParseException
EvaluationException

StreamHandler

public StreamHandler(@Nullable
                     java.lang.String propertyNamePrefix)
              throws ParseException,
                     EvaluationException
Single-arg constructor to be used by proxies.

Throws:
ParseException
EvaluationException

StreamHandler

public StreamHandler(java.io.OutputStream outputStream,
                     boolean autoFlush,
                     java.util.logging.Level level,
                     java.util.logging.Filter filter,
                     java.util.logging.Formatter formatter,
                     java.lang.String encoding)