25 lines
726 B
Java
25 lines
726 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
import java.io.File;
|
||
|
import java.io.FileInputStream;
|
||
|
import java.io.IOException;
|
||
|
import java.util.logging.LogManager;
|
||
|
import java.util.logging.Logger;
|
||
|
|
||
|
public class Main {
|
||
|
private static Logger logger = null;
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
try {
|
||
|
FileInputStream stream = new FileInputStream(new File("C:/secondCourse/OOP/PIbd-23_Mochalov_D.V._Locomotive_Hard/log.config"));
|
||
|
LogManager.getLogManager().readConfiguration(stream);
|
||
|
logger = Logger.getGlobal();
|
||
|
stream.close();
|
||
|
|
||
|
} catch (IOException e) {
|
||
|
throw new RuntimeException(e);
|
||
|
}
|
||
|
new FormMapWithSetLocomotives();
|
||
|
}
|
||
|
}
|