net.wotonomy.foundation
Class NSLog.PrintStreamLogger

java.lang.Object
  extended by net.wotonomy.foundation.NSLog.Logger
      extended by net.wotonomy.foundation.NSLog.PrintStreamLogger
Enclosing class:
NSLog

public static class NSLog.PrintStreamLogger
extends NSLog.Logger

The default implementation of Logger that writes to a Java PrintStream. If not enabled, no output is written. If verbose, output is in format: "[time] message".


Constructor Summary
NSLog.PrintStreamLogger(java.io.PrintStream ps)
          Constructor takes a PrintStream.
 
Method Summary
 void appendln()
          Sends a newline to the print stream.
 void appendln(java.lang.Object aValue)
          Writes aValue.toString to the print stream.
 void appendln(java.lang.Throwable aValue)
          Writes the throwable to the print stream.
 void flush()
          Flushes the print stream.
 java.io.PrintStream printStream()
          Returns the current print stream.
 void setPrintStream(java.io.PrintStream aStream)
          Replaces the current print stream.
 
Methods inherited from class net.wotonomy.foundation.NSLog.Logger
appendln, appendln, appendln, appendln, appendln, appendln, appendln, appendln, appendln, appendln, isEnabled, isVerbose, setIsEnabled, setIsVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSLog.PrintStreamLogger

public NSLog.PrintStreamLogger(java.io.PrintStream ps)
Constructor takes a PrintStream.

Method Detail

appendln

public void appendln()
Sends a newline to the print stream.

Specified by:
appendln in class NSLog.Logger

appendln

public void appendln(java.lang.Throwable aValue)
Writes the throwable to the print stream.

Overrides:
appendln in class NSLog.Logger

appendln

public void appendln(java.lang.Object aValue)
Writes aValue.toString to the print stream.

Specified by:
appendln in class NSLog.Logger

flush

public void flush()
Flushes the print stream.

Specified by:
flush in class NSLog.Logger

printStream

public java.io.PrintStream printStream()
Returns the current print stream.


setPrintStream

public void setPrintStream(java.io.PrintStream aStream)
Replaces the current print stream.



Copyright © 2006 null. All Rights Reserved.