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
-
HIGH
-
-
logger
-
-
LOW
-
-
OFF
-
-
Z39logging()
- Constructor to open a log file with default name 'z3950.log'
-
Z39logging(boolean)
- Constructor that supports automatic flushing of the log when a
newline is written.
-
Z39logging(String, int)
- Constructor to open a log file
-
Z39logging(String, int, boolean)
- Constructor that supports automatic flushing of the log when a
newline is written.
-
getLevel()
-
-
setLevel(int)
-
OFF
public static final int OFF
LOW
public static final int LOW
HIGH
public static final int HIGH
logger
public static Z39logging logger
Z39logging
public Z39logging() throws IOException
- Constructor to open a log file with default name 'z3950.log'
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.
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.
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.
getLevel
public int getLevel()
setLevel
public void setLevel(int newLevel)
All Packages Class Hierarchy This Package Previous Next Index