net.wotonomy.foundation
Class NSLog.Logger

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

public abstract static class NSLog.Logger
extends java.lang.Object

The abstract superclass of all Logger implementations.


Constructor Summary
NSLog.Logger()
          Default constructor sets enabled and verbose to true.
 
Method Summary
abstract  void appendln()
          Appends a line to the log.
 void appendln(boolean aValue)
          Convenience to append a Boolean.
 void appendln(byte aValue)
          Convenience to append a Byte.
 void appendln(byte[] aValue)
          Convenience to write a String comprised of the byte array using the default encoding.
 void appendln(char aValue)
          Convenience to append a Character.
 void appendln(char[] aValue)
          Convenience to append a String comprised of the character array.
 void appendln(double aValue)
          Convenience to append a Double.
 void appendln(float aValue)
          Convenience to append a Float.
 void appendln(int aValue)
          Convenience to append a Integer.
 void appendln(long aValue)
          Convenience to append a Long.
abstract  void appendln(java.lang.Object aValue)
          Writes the object to the log.
 void appendln(short aValue)
          Convenience to append a Short
 void appendln(java.lang.Throwable aValue)
          Convenience to append a Throwable.
abstract  void flush()
          Flushes any buffered output to the log.
 boolean isEnabled()
          Returns whether the logger is enabled, the meaning of which is defined by the implementing class.
 boolean isVerbose()
          Returns whether the logger is verbose, the meaning of which is defined by the implementing class.
 void setIsEnabled(boolean aBool)
          Sets whether the logger is enabled, the meaning of which is defined by the implementing class.
 void setIsVerbose(boolean aBool)
          Sets whether the logger is verbose, the meaning of which is defined by the implementing class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NSLog.Logger

public NSLog.Logger()
Default constructor sets enabled and verbose to true.

Method Detail

appendln

public void appendln(boolean aValue)
Convenience to append a Boolean.


appendln

public void appendln(byte aValue)
Convenience to append a Byte.


appendln

public void appendln(byte[] aValue)
Convenience to write a String comprised of the byte array using the default encoding.


appendln

public void appendln(char aValue)
Convenience to append a Character.


appendln

public void appendln(char[] aValue)
Convenience to append a String comprised of the character array.


appendln

public void appendln(double aValue)
Convenience to append a Double.


appendln

public void appendln(float aValue)
Convenience to append a Float.


appendln

public void appendln(int aValue)
Convenience to append a Integer.


appendln

public void appendln(long aValue)
Convenience to append a Long.


appendln

public void appendln(short aValue)
Convenience to append a Short


appendln

public void appendln(java.lang.Throwable aValue)
Convenience to append a Throwable.


appendln

public abstract void appendln(java.lang.Object aValue)
Writes the object to the log.


appendln

public abstract void appendln()
Appends a line to the log.


flush

public abstract void flush()
Flushes any buffered output to the log.


isEnabled

public boolean isEnabled()
Returns whether the logger is enabled, the meaning of which is defined by the implementing class.


isVerbose

public boolean isVerbose()
Returns whether the logger is verbose, the meaning of which is defined by the implementing class.


setIsEnabled

public void setIsEnabled(boolean aBool)
Sets whether the logger is enabled, the meaning of which is defined by the implementing class.


setIsVerbose

public void setIsVerbose(boolean aBool)
Sets whether the logger is verbose, the meaning of which is defined by the implementing class.



Copyright © 2006 null. All Rights Reserved.