Problem mit log4j - beim Start des Images kommt immer die Meldung: "ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console..."

This commit is contained in:
Konrad Neitzel
2022-10-17 20:03:31 +02:00
parent 9bbbe0fa4d
commit 8e81f08656
3 changed files with 121 additions and 11 deletions
+5 -2
View File
@@ -1,14 +1,16 @@
package de.kneitzel;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class JavaFXApp extends Application {
static final Logger logger = LogManager.getLogger(JavaFXApp.class);
@Override
public void start(Stage primaryStage) {
@@ -24,6 +26,7 @@ public class JavaFXApp extends Application {
}
public static void main(String[] args) {
logger.warn("Starting ...");
launch(args);
}
+2
View File
@@ -3,6 +3,8 @@ module FXAppModule {
requires javafx.graphics;
requires javafx.controls;
requires javafx.web;
requires org.apache.logging.log4j;
// requires org.apache.logging.log4j.core;
exports de.kneitzel;
opens de.kneitzel;