com.gargoylesoftware.base.trace
public class TraceController extends Object
Version: $Revision: 1.4 $
Field Summary | |
---|---|
TraceChannel | defaultChannel_ |
PrintStream | systemErr_ |
PrintStream | systemOut_ |
Constructor Summary | |
---|---|
TraceController()
Instantiate one |
Method Summary | |
---|---|
protected void | assertNotNull(String fieldName, Object fieldValue)
Verify that the specified value is not null. |
void | close()
Close down the debugging facilities in preparation for application
shutdown. |
TraceChannel | getDefaultChannel()
Return the default channel
|
PrintStream | getRealSystemErr()
Return the real stream that corresponds to the console for System.err.
|
PrintStream | getRealSystemOut()
Return the real stream that corresponds to the console for System.out.
|
boolean | isBufferingEnabled()
Return true if buffering is enabled.
|
boolean | isErrRedirected()
Return true if System.err has been redirected to print through
Trace.println
|
boolean | isOutRedirected()
Return true if System.out has been redirected to print through
Trace.println
|
void | setBufferingEnabled(boolean enabled)
Shutdown the tracing thread and flush the buffers. |
void | setDefaultChannel(TraceChannel channel)
Set the default channel. |
void | setErrRedirected(boolean redirected)
Specify whether or not System.err should be redirected to print through
Trace.println
|
void | setOutRedirected(boolean redirected)
Specify whether or not System.out should be redirected to print through
Trace.println
|
Parameters: fieldName The name of the field to check fieldValue The value of the field to check
Throws: DetailedNullPointerException If fieldValue is null
Returns: the default channel.
Returns: the real System.err
Returns: the real System.out
Returns: true if buffering is enabled.
Returns: true if System.err has been redirected.
Returns: true if System.out has been redirected.
Parameters: enabled true if buffering is to be enabled.
Parameters: channel the new channel.
Parameters: redirected true if System.err should be redirected.
Parameters: redirected true if System.out should be redirected.