diff --git a/src/main/java/org/datadog/jmxfetch/util/CustomLogger.java b/src/main/java/org/datadog/jmxfetch/util/CustomLogger.java index 934f40e15..5902e3fc3 100644 --- a/src/main/java/org/datadog/jmxfetch/util/CustomLogger.java +++ b/src/main/java/org/datadog/jmxfetch/util/CustomLogger.java @@ -36,7 +36,7 @@ public static void setup(Level level, String logLocation, boolean logFormatRfc33 final Configuration config = ctx.getConfiguration(); String target = "CONSOLE"; - String logPattern = logFormatRfc3339 ? LAYOUT : LAYOUT_RFC3339; + String logPattern = logFormatRfc3339 ? LAYOUT_RFC3339 : LAYOUT; if (logLocation != null && !ConsoleAppender.Target.SYSTEM_ERR.toString().equals(logLocation)