InfoZoneTools API

org.infozone.tools.logger
Class LogWriter

java.lang.Object
  |
  +--org.infozone.tools.logger.LogWriter

public final class LogWriter
extends java.lang.Object

Version:
$Revision: 1.3 $Date: 2000/11/10 16:02:33 $
Author:
SMB

Field Summary
static int DEBUG
           
static int DEBUG2
           
static int DEBUG3
           
static int ERROR
           
static int INFO
           
static int LINE_WIDTH
           
static int WARN
           
 
Constructor Summary
LogWriter()
           
 
Method Summary
 void addLogTarget(java.io.OutputStream _out, int _levels)
           
 void addLogTarget(java.io.PrintWriter _writer, int _levels)
           
 boolean hasTarget(int level)
          This method allows to quickly find out if there is any log target that would receive entries of the specified level.
 void newEntry(java.lang.Object sender, java.lang.String msg, int levels)
           
 void newEntry(java.lang.Object sender, java.lang.String msg, java.lang.Throwable e, int levels)
           
static java.lang.String rawClassName(java.lang.Object obj)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFO

public static final int INFO
See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

DEBUG2

public static final int DEBUG2
See Also:
Constant Field Values

DEBUG3

public static final int DEBUG3
See Also:
Constant Field Values

LINE_WIDTH

public static final int LINE_WIDTH
See Also:
Constant Field Values
Constructor Detail

LogWriter

public LogWriter()
Method Detail

hasTarget

public boolean hasTarget(int level)
This method allows to quickly find out if there is any log target that would receive entries of the specified level.


addLogTarget

public void addLogTarget(java.io.OutputStream _out,
                         int _levels)

addLogTarget

public void addLogTarget(java.io.PrintWriter _writer,
                         int _levels)

newEntry

public void newEntry(java.lang.Object sender,
                     java.lang.String msg,
                     int levels)

newEntry

public void newEntry(java.lang.Object sender,
                     java.lang.String msg,
                     java.lang.Throwable e,
                     int levels)

rawClassName

public static java.lang.String rawClassName(java.lang.Object obj)

InfoZoneTools API