org.openware.loadsim.output
Class Log
java.lang.Object
|
+--org.openware.loadsim.output.Log
- All Implemented Interfaces:
- ILog, java.rmi.Remote
- public class Log
- extends java.lang.Object
- implements ILog
Logger for LoadSim.
Constructor Summary |
Log(java.lang.String logFileName)
Create a log with the given file name. |
Log(java.lang.String logFileName,
boolean append)
Create a log with the given file name. |
Log(java.lang.String logFileName,
boolean append,
int detailLevel)
|
Method Summary |
void |
close()
|
void |
log(java.lang.Exception e)
|
void |
log(int detailLevel,
java.lang.String msg)
Log the message with the given detail level. |
void |
log(java.lang.String msg)
Log the message with a detail level of ERROR . |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Log
public Log(java.lang.String logFileName)
throws java.io.IOException
- Create a log with the given file name. There are 2 special names:
- stdout - will cause the log file to use standard out.
- stderr - will cause the log file to use standard error.
The log file will be opened in append mode.
- Parameters:
logFileName
- The name of the log file.
Log
public Log(java.lang.String logFileName,
boolean append)
throws java.io.IOException
- Create a log with the given file name. There are 2 special names:
- stdout - will cause the log file to use standard out.
- stderr - will cause the log file to use standard error.
- Parameters:
logFileName
- The name of the log file.append
- Set to true
if you want to open the log
file in append mode. Set to false
if
you want to overwrite an existing file.
Log
public Log(java.lang.String logFileName,
boolean append,
int detailLevel)
throws java.io.IOException
close
public void close()
- Specified by:
close
in interface ILog
log
public void log(java.lang.String msg)
- Log the message with a detail level of
ERROR
.
- Specified by:
log
in interface ILog
- Parameters:
msg
- The message to log.
log
public void log(java.lang.Exception e)
- Specified by:
log
in interface ILog
log
public void log(int detailLevel,
java.lang.String msg)
- Log the message with the given detail level.
- Specified by:
log
in interface ILog
- Parameters:
detailLevel
- The desired detail level.msg
- The message to log.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.