Class sun.server.util.TraceLog
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.util.TraceLog

java.lang.Object
   |
   +----sun.server.util.Log
           |
           +----sun.server.util.TraceLog

public class TraceLog
extends Log
A class for logging server trace information.

Constructor Index

 o TraceLog()
Creates a new trace log object.
 o TraceLog(OutputStream)
Creates a new trace log using the specified output stream.
 o TraceLog(String)
Creates a new trace log using the specified file.

Method Index

 o write(Exception)
Writes an exception to the log file if the current logging level is greater than or equal to 1.
 o write(int, Exception)
Writes an exception to the log file if the current logging level is greater than or equal to the specified level.
 o write(int, String)
Writes a message to the log file if the current logging level is greater than or equal to the specified level.
 o write(String)
Writes a message to the log file if the current logging level is greater than or equal to 1.

Constructors

 o TraceLog
  public TraceLog()
Creates a new trace log object.
 o TraceLog
  public TraceLog(OutputStream out)
Creates a new trace log using the specified output stream.
Parameters:
out - the output stream
 o TraceLog
  public TraceLog(String name) throws IOException
Creates a new trace log using the specified file.
Parameters:
name - the file name
Throws: IOException
if the file could not be opened

Methods

 o write
  public void write(String s)
Writes a message to the log file if the current logging level is greater than or equal to 1.
Parameters:
s - the message to write
 o write
  public synchronized void write(int level,
                                 String s)
Writes a message to the log file if the current logging level is greater than or equal to the specified level.
Parameters:
level - the level for this message
s - the message to write
 o write
  public void write(Exception e)
Writes an exception to the log file if the current logging level is greater than or equal to 1.
Parameters:
s - the exception to write
 o write
  public synchronized void write(int level,
                                 Exception e)
Writes an exception to the log file if the current logging level is greater than or equal to the specified level.
Parameters:
level - the level for this message
s - the exception to write

All Packages  Class Hierarchy  This Package  Previous  Next  Index