All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ORG.oclc.z39.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.

Version:
@(#)Z39logging.java 1.1 07/09/97

Variable Index

 o HIGH
 o logger
 o LOW
 o OFF

Constructor Index

 o Z39logging()
Constructor to open a log file with default name 'z3950.log'
 o Z39logging(boolean)
Constructor that supports automatic flushing of the log when a newline is written.
 o Z39logging(String, int)
Constructor to open a log file
 o Z39logging(String, int, boolean)
Constructor that supports automatic flushing of the log when a newline is written.

Method Index

 o getLevel()
 o setLevel(int)

Variables

 o OFF
 public static final int OFF
 o LOW
 public static final int LOW
 o HIGH
 public static final int HIGH
 o logger
 public static Z39logging logger

Constructors

 o Z39logging
 public Z39logging() throws IOException
Constructor to open a log file with default name 'z3950.log'

 o Z39logging
 public Z39logging(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:
autoFlush - true indicates automatic flushing.
 o Z39logging
 public Z39logging(String filename,
                   int bufferSize) throws IOException
Constructor to open a log file

Parameters:
filename - Name of the log file.
bufferSize - Size of the buffer used by the OutputStream.
 o 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.

Methods

 o getLevel
 public int getLevel()
 o setLevel
 public void setLevel(int newLevel)

All Packages  Class Hierarchy  This Package  Previous  Next  Index