diff --git a/logging-modules/logback/src/main/java/com/baeldung/logback/MaskingPatternLayoutExample.java b/logging-modules/logback/src/main/java/com/baeldung/logback/MaskingPatternLayoutExample.java index 793a7b04be..cbcd0209ab 100644 --- a/logging-modules/logback/src/main/java/com/baeldung/logback/MaskingPatternLayoutExample.java +++ b/logging-modules/logback/src/main/java/com/baeldung/logback/MaskingPatternLayoutExample.java @@ -22,7 +22,6 @@ public class MaskingPatternLayoutExample { user.put("email_id", "spring@baeldung.com"); JSONObject userDetails = new JSONObject(user); - logger.info("MaskingPatternExample log from {}" + userDetails, - MaskingPatternLayoutExample.class.getSimpleName()); + logger.info("MaskingPatternExample log from {}" + userDetails, MaskingPatternLayoutExample.class.getSimpleName()); } } diff --git a/logging-modules/logback/src/main/resources/logback.xml b/logging-modules/logback/src/main/resources/logback.xml index 3193b1126c..24b5c157be 100644 --- a/logging-modules/logback/src/main/resources/logback.xml +++ b/logging-modules/logback/src/main/resources/logback.xml @@ -48,16 +48,16 @@ - - - \"SSN\"\s*:\s*\"(.*?)\" - \"address\"\s*:\s*\"(.*?)\" - (\d+\.\d+\.\d+\.\d+) - (\w+@\w+\.\w+) - %-5p [%d{ISO8601,UTC}] [%thread] %c: %m%n%rootException - - - + + + \"SSN\"\s*:\s*\"(.*?)\" + \"address\"\s*:\s*\"(.*?)\" + (\d+\.\d+\.\d+\.\d+) + (\w+@\w+\.\w+) + %-5p [%d{ISO8601,UTC}] [%thread] %c: %m%n%rootException + + +