Se elimino el sistema de logging de java
Planeo hacerlo nuevamente con una libreria
This commit is contained in:
@@ -28,10 +28,7 @@ import danielcortes.xyz.controllers.BaseLayoutController;
|
||||
import danielcortes.xyz.data.Configuration;
|
||||
import danielcortes.xyz.data.DAOManager;
|
||||
import danielcortes.xyz.views.BaseLayout;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
import java.util.logging.LogManager;
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.UIManager;
|
||||
@@ -42,7 +39,6 @@ public class Main {
|
||||
private static final int DATABASE_VERSION = 2;
|
||||
|
||||
static {
|
||||
setUpLogger();
|
||||
setUpSystemProperties();
|
||||
updateDatabase();
|
||||
}
|
||||
@@ -83,17 +79,4 @@ public class Main {
|
||||
|
||||
Locale.setDefault(new Locale("es"));
|
||||
}
|
||||
|
||||
private static void setUpLogger() {
|
||||
LogManager manager = LogManager.getLogManager();
|
||||
try {
|
||||
FileInputStream in = new FileInputStream("config/logging.properties");
|
||||
manager.readConfiguration(in);
|
||||
in.close();
|
||||
} catch (IOException e) {
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user