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.
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 |
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
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 -
close
public void close()
- Overrides:
- close in class PrintWriter
getLevel
public static int getLevel()
setLevel
public static void setLevel(int newLevel)