public class LogFile
extends java.lang.Object
writeToLog(String, LogType)
or one of its equivalents to write a message to the log file.Constructor and Description |
---|
LogFile(java.lang.String filename)
Creates a new log file.
|
Modifier and Type | Method and Description |
---|---|
void |
writeToLog(AlgorithmPlugin plugin,
java.lang.String msg,
java.lang.Exception e,
LogType type)
Writes a message to the log file.
|
void |
writeToLog(AlgorithmPlugin plugin,
java.lang.String msg,
LogType type)
Writes a message to the log file.
|
void |
writeToLog(java.lang.String msg,
java.lang.Exception e,
LogType type)
Writes a message to the log file.
|
void |
writeToLog(java.lang.String msg,
LogType type)
Writes a message to the log file.
|
public LogFile(java.lang.String filename) throws java.io.IOException
filename
- the path and name of the filejava.io.IOException
- public void writeToLog(java.lang.String msg, LogType type)
msg
- the messagetype
- the type of the messagepublic void writeToLog(AlgorithmPlugin plugin, java.lang.String msg, LogType type)
plugin
- a AlgorithmPlugin
that want to log a messagemsg
- the messagetype
- the type of the messagepublic void writeToLog(java.lang.String msg, java.lang.Exception e, LogType type)
msg
- the messagee
- an exception that occurredtype
- the type of the messagepublic void writeToLog(AlgorithmPlugin plugin, java.lang.String msg, java.lang.Exception e, LogType type)
plugin
- a AlgorithmPlugin
that want to log a messagemsg
- the messagee
- an exception that occurredtype
- the type of the message