Improved Config machanism with ConfigItems

Added logger levels and home directory to Config
This commit is contained in:
2019-12-21 11:35:01 +01:00
parent a8406cb033
commit 8b6e501c2e
4 changed files with 94 additions and 77 deletions

View File

@ -61,6 +61,9 @@ public class Startup {
System.exit(1);
e.printStackTrace();
}
EnvoyLog.setFileLevelBarrier(Config.getInstance().getFileLevelBarrier());
EnvoyLog.setConsoleLevelBarrier(Config.getInstance().getConsoleLevelBarrier());
// Ask the user for their user name
String userName = JOptionPane.showInputDialog("Please enter your username");