Ich möchte alle internen Springboot Log-Nachrichten an log4j gerichtet haben, so dass die Nachrichten meinen log4j Eigenschaften folgen, aber es ist ungültig.Springboot Logging Config ungültig
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j</artifactId>
<version>1.3.8.RELEASE</version>
</dependency>
logging.config = file: /data/log/report-log4j.properties
bis springboot starten, gibt sie
log4j: WARN Für logger (org.springframework.web.context.support.StandardServletEnvironment) konnten keine Appender gefunden werden. log4j. WARN initialisieren Sie bitte die log4j System richtig
aber, report-log4j.properties in Classpath ist es Erfolg
von logging.config = Datei: /data/log/report-log4j.properties – senz