PATH |
NSLog.Logger
- Inherits from:
- Object
- Package:
- com.webobjects.foundation
Class Description
NSLog.Logger is an abstract class that specifies the core functionality for NSLog.
You can subclass NSLog.Logger to add custom logging implementations based on Email, java.io.PrintWriters, display to a Swing window, etc. To add custom logging implementations based on java.io.PrintStream, subclass NSLog.PrintStreamLogger. If you subclass NSLog.Logger, you need only implement two of the appendln methods: appendln(Object), since the other appendln methods invoke appendln(Object); and appendln(). You must also implement flush() if you subclass.
See the class specification on "NSLog" (page 125) and "NSLog.PrintStreamLogger" (page 145) for more information.
Method Types
- Appending to output
- appendln
- Maintaining logging options
- isEnabled
- isVerbose
- setIsEnabled
- setIsVerbose
- Flushing the log
- flush
Constructors
NSLog.Logger
public NSLog.Logger()
Instance Methods
appendln
public abstract void appendln(Object anObject)
public void appendln(Throwable aThrowable)
public void appendln(int anInt)
public void appendln(float aFloat)
public void appendln(short aShort)
public void appendln(long aLong)
public void appendln(byte[] aByteArray)
public void appendln(char[] aCharArray)
public void appendln(boolean aBoolean)
true
if aBoolean is true, false
if aBoolean is false.
public void appendln(double aDouble)
public void appendln(char aChar)
public void appendln(byte aByte)
public void appendln()
flush
public abstract void flush()
isEnabled
public boolean isEnabled()
true
, and is set by setIsEnabled. As implemented in NSLog, the internal boolean regulates whether logging is enabled or disabled. When logging is disabled, the receiver ignores all invocations of appendln. By default, logging is enabled.
isVerbose
public boolean isVerbose()
true
, and is set by setIsVerbose. As implemented in NSLog, the internal boolean regulates whether verbose logging is activated or deactivated. See the method description for setIsVerbose for more information. By default, verbose logging is disabled.
setIsEnabled
public void setIsEnabled(boolean aBoolean)
setIsVerbose
public void setIsVerbose(boolean aBoolean)
© 2001 Apple Computer, Inc. (Last Published April 17, 2001)