|
static void | setParameters (int level, String dir, String format) |
|
static synchronized void | log (String message, int severity, String errClass, String errMethod, Exception e) |
|
static void | deleteOld (long loggerTrashtime, String loggerDir) |
|
Helper Class for error logging.
static void vanetsim.ErrorLog.deleteOld |
( |
long |
loggerTrashtime, |
|
|
String |
loggerDir |
|
) |
| |
|
inlinestatic |
Deletes old logfiles (uses file modification time to determine which files are old)
- Parameters
-
loggerTrashtime | maximum age (in days) for a log file. Older files are deleted. |
loggerDir | directory where to delete files |
static synchronized void vanetsim.ErrorLog.log |
( |
String |
message, |
|
|
int |
severity, |
|
|
String |
errClass, |
|
|
String |
errMethod, |
|
|
Exception |
e |
|
) |
| |
|
inlinestatic |
Logs an error.
- Parameters
-
message | error message |
severity | error severity in scale of 1-7. A higher value stands for a more severe error (Finest, Finer, Fine, Config, Info, Warning, Severe) |
errClass | class where the error occured |
errMethod | method in which the error occured |
e | the exception (use null if you don't have one) |
static void vanetsim.ErrorLog.setParameters |
( |
int |
level, |
|
|
String |
dir, |
|
|
String |
format |
|
) |
| |
|
inlinestatic |
Sets the parameters for the static class.
- Parameters
-
level | the minimum level for error messages. If the severity of an error is lower than this value, nothing is logged. |
dir | the directory where the error log files are located |
format | the format of the log files (txt or xml ) |
The documentation for this class was generated from the following file:
- /Users/andreastomandl/Desktop/Vanet-Sim/Simulator/src/vanetsim/ErrorLog.java