public class BaseLogger extends Logger
Modifier and Type | Field and Description |
---|---|
private java.util.List<Logger> |
loggerList
The
Logger s. |
Constructor and Description |
---|
BaseLogger()
Creates a base logger.
|
BaseLogger(boolean trace)
Creates a base logger with or without a trace.
|
BaseLogger(java.lang.String folderName)
Creates a base logger that logs to a specified directory.
|
BaseLogger(java.lang.String folderName,
boolean trace)
Creates a base logger that logs to a specified directory.
|
Modifier and Type | Method and Description |
---|---|
void |
closeLog()
Close the log.
|
private java.lang.String |
initLog(java.lang.String folderName)
Initiates log location.
|
void |
printLine(java.lang.String string)
Print a line.
|
void |
setSimulator(Simulator simulator)
Sets the simulator.
|
void |
update(long time,
boolean ended)
Updates the log.
|
public BaseLogger()
public BaseLogger(boolean trace)
trace
- Includes the trace of the agents or not.public BaseLogger(java.lang.String folderName)
folderName
- The name of the folder.public BaseLogger(java.lang.String folderName, boolean trace)
folderName
- The name of the folder.trace
- Includes the trace of the agents or not.public void closeLog()
Logger
private java.lang.String initLog(java.lang.String folderName)
folderName
- The name of the base folder.public void printLine(java.lang.String string)
public void setSimulator(Simulator simulator)
Logger
setSimulator
in class Logger
simulator
- The simulator.