diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 5841f89b2a..04efdf00c2 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -912,6 +912,7 @@ The following items are output: * Logger name -- This is usually the source class name (often abbreviated). * The log message. +NOTE: Logback does not have a `FATAL` level (it is mapped to `ERROR`) [[boot-features-logging-console-output]] diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/log4j/Log4JLoggingSystem.java b/spring-boot/src/main/java/org/springframework/boot/logging/log4j/Log4JLoggingSystem.java index ab772113d6..e4523c0436 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/log4j/Log4JLoggingSystem.java +++ b/spring-boot/src/main/java/org/springframework/boot/logging/log4j/Log4JLoggingSystem.java @@ -49,7 +49,7 @@ public class Log4JLoggingSystem extends Slf4JLoggingSystem { levels.put(LogLevel.INFO, Level.INFO); levels.put(LogLevel.WARN, Level.WARN); levels.put(LogLevel.ERROR, Level.ERROR); - levels.put(LogLevel.FATAL, Level.ERROR); + levels.put(LogLevel.FATAL, Level.FATAL); levels.put(LogLevel.OFF, Level.OFF); LEVELS = Collections.unmodifiableMap(levels); } diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java b/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java index 72e1a448a9..4f88f3ad45 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java +++ b/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java @@ -64,7 +64,7 @@ public class Log4J2LoggingSystem extends Slf4JLoggingSystem { levels.put(LogLevel.INFO, Level.INFO); levels.put(LogLevel.WARN, Level.WARN); levels.put(LogLevel.ERROR, Level.ERROR); - levels.put(LogLevel.FATAL, Level.ERROR); + levels.put(LogLevel.FATAL, Level.FATAL); levels.put(LogLevel.OFF, Level.OFF); LEVELS = Collections.unmodifiableMap(levels); }