Open SiteSearch 4.1.1
Final

ORG.oclc.z39
Class Z39logging

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.PrintWriter
              |
              +--ORG.oclc.z39.Z39logging

public class Z39logging
extends PrintWriter

Z39logging provides a means to turn on logging for all Z39 transactions.


Field Summary
static int HIGH
           
static int level
           
static Z39logging logger
           
static int LOW
           
static int OFF
           
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
Z39logging(OutputStream out)
           
Z39logging(String filename, int bufferSize)
           
Z39logging(String filename, int bufferSize, boolean autoFlush)
          Constructor that supports automatic flushing of the log when a newline is written.
 
Method Summary
 void close()
           
static int getLevel()
           
static void setLevel(int newLevel)
           
 
Methods inherited from class java.io.PrintWriter
checkError, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OFF

public static final int OFF

LOW

public static final int LOW

HIGH

public static final int HIGH

level

public static int level

logger

public static Z39logging logger
Constructor Detail

Z39logging

public Z39logging(String filename,
                  int bufferSize)
           throws IOException

Z39logging

public Z39logging(OutputStream out)
           throws IOException

Z39logging

public Z39logging(String filename,
                  int bufferSize,
                  boolean autoFlush)
           throws IOException
Constructor that supports automatic flushing of the log when a newline is written. This is important in servers when Z39logging may not be closed gracefully.
Parameters:
filename - Name of the log file.
bufferSize - Size of the buffer used by the OutputStream.
autoFlush - true indicates automatic flushing.
Throws:
IOException -  
Method Detail

close

public void close()
Overrides:
close in class PrintWriter

getLevel

public static int getLevel()

setLevel

public static void setLevel(int newLevel)

Open SiteSearch 4.1.1
Final