public abstract class EcologiaIO
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
analysing |
static int |
BREAK_ERROR |
static int |
CONTINUABLE_ERROR |
static boolean |
debugging |
static int |
FATAL_ERROR |
static boolean |
logging |
static boolean |
verbose |
Constructor and Description |
---|
EcologiaIO() |
Modifier and Type | Method and Description |
---|---|
static void |
analysis(java.lang.String message)
Print an analysis message if the analysing flag is set.
|
static void |
archiveLog()
Archive the current log file, ready for a new run
|
static void |
debug(java.lang.String message)
Print a debug message if the debug flag is set.
|
static void |
error(java.lang.String message)
Print an error message
|
static void |
error(java.lang.String message,
java.lang.Exception error)
Print an error message and the stack trace
|
static void |
error(java.lang.String message,
int errorType)
Give an error message and pause/shut down
|
private static java.lang.String |
getDate() |
static void |
log(java.lang.String message)
Print a log message if the verbose flag is set.
|
static void |
printStatus()
Print out which flags are set.
|
private static void |
writeFile(java.lang.String message)
Write a message to file
|
public static boolean verbose
public static boolean debugging
public static boolean analysing
public static boolean logging
public static final int CONTINUABLE_ERROR
public static final int BREAK_ERROR
public static final int FATAL_ERROR
public static void log(java.lang.String message)
message
- public static void debug(java.lang.String message)
message
- public static void analysis(java.lang.String message)
message
- public static void error(java.lang.String message)
message
- public static void error(java.lang.String message, java.lang.Exception error)
message
- error
- public static void error(java.lang.String message, int errorType)
message
- errorType
- CONTINUABLE_ERROR, BREAK_ERROR, FATAL_ERRORpublic static void archiveLog()
public static void printStatus()
private static void writeFile(java.lang.String message)
private static java.lang.String getDate()