diff --git a/src/main/asciidoc/appendix/logging.adoc b/src/main/asciidoc/appendix/logging.adoc index 10a8c81c3..bc1edbc7c 100644 --- a/src/main/asciidoc/appendix/logging.adoc +++ b/src/main/asciidoc/appendix/logging.adoc @@ -11,3 +11,6 @@ To exclude or elevate some categories, the following loggers are in place: * `org.springframework.data.neo4j.cypher.unsupported` * `org.springframework.data.neo4j.cypher.deprecation` * `org.springframework.data.neo4j.cypher.generic` +* `org.springframework.data.neo4j.cypher.security` +* `org.springframework.data.neo4j.cypher.topology` + diff --git a/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java b/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java index 6321f492f..efc2cfde1 100644 --- a/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java +++ b/src/main/java/org/springframework/data/neo4j/core/ResultSummaries.java @@ -43,6 +43,8 @@ final class ResultSummaries { private static final LogAccessor cypherUnsupportedNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.unsupported")); private static final LogAccessor cypherDeprecationNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.deprecation")); private static final LogAccessor cypherGenericNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.generic")); + private static final LogAccessor cypherSecurityNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.security")); + private static final LogAccessor cypherTopologyNotificationLog = new LogAccessor(LogFactory.getLog("org.springframework.data.neo4j.cypher.topology")); /** * Does some post-processing on the giving result summary, especially logging all notifications @@ -98,6 +100,12 @@ final class ResultSummaries { if (category == NotificationCategory.UNRECOGNIZED) { return cypherUnrecognizedNotificationLog; } + if (category == NotificationCategory.SECURITY) { + return cypherSecurityNotificationLog; + } + if (category == NotificationCategory.TOPOLOGY) { + return cypherTopologyNotificationLog; + } return Neo4jClient.cypherLog; } diff --git a/src/test/resources/logback-test.xml b/src/test/resources/logback-test.xml index 413307c32..5646e1426 100644 --- a/src/test/resources/logback-test.xml +++ b/src/test/resources/logback-test.xml @@ -30,13 +30,15 @@ - - + + + +