All Packages Class Hierarchy This Package Previous Next Index
Class iBus.LogRedirect
java.lang.Object
|
+----java.io.Writer
|
+----java.io.PrintWriter
|
+----iBus.LogRedirect
- public class LogRedirect
- extends PrintWriter
To redirect the Java output and error streams to a bus channel.
java.lang.System.setOut() and java.lang.System.setErr() are called
with an instance of LogRedirect.
Posting format:
0: String: log message.
-
LogRedirect(iBusURL)
- Create a PrintStream that redirects output to a bus channel.
-
println(String)
- Overwrites PrintStream.println.
LogRedirect
public LogRedirect(iBusURL channel)
- Create a PrintStream that redirects output to a bus channel.
- Parameters:
- channel - the iBus channel to direct this stream to.
println
public void println(String str)
- Overwrites PrintStream.println. Sends the string to the iBus
channel the LogRedirect object was created for.
- Parameters:
- str - the string to log
- Overrides:
- println in class PrintWriter
All Packages Class Hierarchy This Package Previous Next Index