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.
-
TraceLog()
- Creates a new trace log object.
-
TraceLog(OutputStream)
- Creates a new trace log using the specified output stream.
-
TraceLog(String)
- Creates a new trace log using the specified file.
-
write(Exception)
- Writes an exception to the log file if the current logging level is
greater than or equal to 1.
-
write(int, Exception)
- Writes an exception to the log file if the current logging level is
greater than or equal to the specified level.
-
write(int, String)
- Writes a message to the log file if the current logging level is
greater than or equal to the specified level.
-
write(String)
- Writes a message to the log file if the current logging level is
greater than or equal to 1.
TraceLog
public TraceLog()
- Creates a new trace log object.
TraceLog
public TraceLog(OutputStream out)
- Creates a new trace log using the specified output stream.
- Parameters:
- out - the output stream
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
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
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
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
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