com.hp.hpl.jena.util
Class PlainLogHandler
java.lang.Object
|
+--com.hp.hpl.jena.util.PlainLogHandler
- All Implemented Interfaces:
- LogHandler
- public class PlainLogHandler
- extends java.lang.Object
- implements LogHandler
A simple, unadorned output stream.
Does not add anything to the messages
Constructor Summary |
PlainLogHandler()
Construct PlainLogHandler that goes to System.out |
PlainLogHandler(java.io.OutputStream outStream)
Construct PlainLogHandler that goes to an existing java.io.OutputStream |
PlainLogHandler(java.io.PrintWriter pw)
Construct PlainLogHandler that goes to an existing java.io.PrintWriter |
Method Summary |
void |
close()
Close the log handler and free any associated resources. |
void |
publish(int level,
java.lang.String msg,
java.lang.String cls,
java.lang.String method,
java.lang.Throwable ex)
Publish the given log information. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainLogHandler
public PlainLogHandler()
- Construct PlainLogHandler that goes to System.out
PlainLogHandler
public PlainLogHandler(java.io.OutputStream outStream)
- Construct PlainLogHandler that goes to an existing java.io.OutputStream
PlainLogHandler
public PlainLogHandler(java.io.PrintWriter pw)
- Construct PlainLogHandler that goes to an existing java.io.PrintWriter
publish
public void publish(int level,
java.lang.String msg,
java.lang.String cls,
java.lang.String method,
java.lang.Throwable ex)
- Publish the given log information.
- Specified by:
publish
in interface LogHandler
- Parameters:
level
- The log level that this message is published at (ignored in PlainLogHandler)msg
- The log message to be published.cls
- Optional name of the class that originated the log request.method
- Optional name of the method that originated the log request.ex
- Optional throwable that triggered the log request.
close
public void close()
- Close the log handler and free any associated resources.
Does not close the underlying stream in case that in turn closes System.out
- Specified by:
close
in interface LogHandler
Copyright © 2001 Hewlett-Packard. All Rights Reserved.