| Modifier and Type | Field and Description | 
|---|---|
protected PrintWriter | 
m_defaultWriter
Default writer. 
 | 
protected PrintWriter | 
m_logWriter
The Stream for writing log entries. 
 | 
protected ParameterTable | 
m_parametertable
The parameter table holding the name/value pairs. 
 | 
protected long | 
m_timervalue
A timer value - for use in displaying elapsed times. 
 | 
| Constructor and Description | 
|---|
BaseMain(String[] args)
Constructs a BaseMain. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected long | 
getElapsedTime()
Gets the elapsed time from when the last time setTimer() or
 getElapsedTime() was called. 
 | 
ParameterTable | 
getParameterTable()
Returns the ParameterTable used by this instance. 
 | 
protected void | 
initTrace()
Creates the log file. 
 | 
void | 
log()
Performs the equivalent of a PrintStream.println() to the log file. 
 | 
void | 
log(String message)
Writes a message to the log file. 
 | 
void | 
logCurrentTimestamp()
Logs the current time to the log file. 
 | 
void | 
printStackTrace(Throwable e)
Prints an exception stack trace to the log. 
 | 
protected void | 
setTimer()
Set the internal timer to the current time. 
 | 
protected long | 
showElapsedTime()
Print the elapsed time (from an internal call to getElapsedTime())
 to the log file. 
 | 
protected ParameterTable m_parametertable
protected PrintWriter m_logWriter
protected long m_timervalue
protected PrintWriter m_defaultWriter
public BaseMain(String[] args)
args - the arguments passed to mainpublic ParameterTable getParameterTable()
protected void initTrace()
public void log()
public void log(String message)
public void printStackTrace(Throwable e)
printStackTrace in interface Loggere - The Throwable to showpublic void logCurrentTimestamp()
protected void setTimer()
protected long getElapsedTime()
protected long showElapsedTime()
Copyright © 2025. All rights reserved.