21 lines
679 B
Java
Raw Normal View History

2023-09-13 10:42:05 +04:00
package ProjectElectricLocomotive;
2023-12-19 00:19:35 +04:00
import org.apache.logging.log4j.*;
2023-09-13 10:38:37 +04:00
public class Main {
2023-12-19 02:22:26 +04:00
private static Logger logger = LogManager.getLogger(Main.class);
2023-09-13 10:38:37 +04:00
public static void main(String[] args)
{
2023-12-19 02:22:26 +04:00
System.setProperty("log4j.configurationFile", "C:\\code\\java\\ProjectElectricLocomotive\\loggerFile.xml");
2023-12-19 00:19:35 +04:00
2023-12-19 02:22:26 +04:00
new FrameLocomotiveCollection(LogManager.getLogger("logger"));
//FrameLocomotiveCollection frameLocomotiveCollection = new FrameLocomotiveCollection(LogManager.getLogger("logger"));
2023-12-19 00:19:35 +04:00
// new FormLocomotiveCollections(LogManager.getLogger(FormLocomotiveCollections.class));
2023-12-19 02:22:26 +04:00
logger.info("hello");
2023-09-13 10:38:37 +04:00
}
}