Log system v2
This commit is contained in:
@@ -79,18 +79,23 @@ public class Read implements Callable <Void> {
|
||||
|
||||
if (vb_level >= 0 && vb_level <=2) {
|
||||
Configurator.setLevel("commands", Level.FATAL);
|
||||
Configurator.setLevel("csv", Level.FATAL);
|
||||
}
|
||||
else if (vb_level >= 3 && vb_level <=4) {
|
||||
Configurator.setLevel("commands", Level.ERROR);
|
||||
Configurator.setLevel("csv", Level.ERROR);
|
||||
}
|
||||
else if (vb_level >= 5 && vb_level <=6) {
|
||||
Configurator.setLevel("commands", Level.WARN);
|
||||
Configurator.setLevel("csv", Level.WARN);
|
||||
}
|
||||
else if (vb_level >= 7 && vb_level <=8) {
|
||||
Configurator.setLevel("commands", Level.INFO);
|
||||
Configurator.setLevel("csv", Level.INFO);
|
||||
}
|
||||
else {
|
||||
Configurator.setLevel("commands", Level.DEBUG);
|
||||
Configurator.setLevel("csv", Level.DEBUG);
|
||||
}
|
||||
|
||||
// Help genere de la commande
|
||||
|
@@ -22,6 +22,7 @@ public class GenerateCSV {
|
||||
this.path = path + "/" + pth;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Teste validité du numero etudiant (selon param de la config passé :
|
||||
// numLength)
|
||||
@@ -75,7 +76,7 @@ public class GenerateCSV {
|
||||
writer.write(etud + ";" + etudiants.get(etud) + System.getProperty("line.separator"));
|
||||
//}
|
||||
// else {
|
||||
// logger.debug("Invalid not added to csv");
|
||||
// logger.debug("Invalid id not added to csv");
|
||||
// }
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user