Spring-Profile, verschiedene Log4j2-Konfigurationen

n meiner application.yml habe ich:

logging: 
  config: classpath:log4j2.debug.yml

Und einige andere in verschiedenen Profilen. Wenn ich die Anwendung starte, erhalte ich Folgendes:

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.

Wenn ich nur log4j2.xml neben den Profilen platziere, funktioniert es. Also denke ich, das ist etwas, wo ich eine Abhängigkeit vermisse oder es ist mit log4j2 nicht möglich?

Referenz:Boot Logging Level sagt es soll möglich sein wie ich es versuche?

Antworten auf die Frage(8)

Ihre Antwort auf die Frage