From 33a7c7163eddac9c602d878ebc6cb197d3ebdb47 Mon Sep 17 00:00:00 2001 From: CaldwellRenea <104075900+CaldwellRenea@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:53:00 -0500 Subject: [PATCH 1/2] Create how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc --- ...g-in-the-neo4j-debug-log-for-neo4j-v5.adoc | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc diff --git a/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc b/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc new file mode 100644 index 00000000..ce9eb2f9 --- /dev/null +++ b/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc @@ -0,0 +1,30 @@ += How to Enable Debug Logging in the Neo4j debug.log for Neo4j v5 +:slug: how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc +:author: Renea Caldwell +:category: logging +:tags: configuration,logging +:neo4j-versions: 5.x + +Starting in Neo4j v5, the configuration settings for file management have been moved to log4j configuration files. +The log4j2 framework allows for flexibility in logging requirements and additional information can be found in Neo4j documentation to explain usage. + +You can find additional information on the changes from v4 to v5 at: +https://neo4j.com/docs/upgrade-migration-guide/current/version-5/migration/breaking-changes/#_changes_to_configuration + +Additional information on how to use log4j configuration and logging in Neo4j v5 can be found at: +https://neo4j.com/docs/operations-manual/5/monitoring/logging/ + +In earlier v4.x versions, one could enable debug logging for the Neo4j debug.log by enabling the setting `dbms.logs.debug.level=DEBUG` in the neo4j.conf file. If you desire simliar behavior in the later v5 versions, the **server-conf.xml** can be configured to the **DEBUG** level. + +To do this, update the conf/server-logs.xml file to update the DebugLog Logger to DEBUG level like below. (The default is set to INFO.) +[source,properties] + + + + + +The configuration change will get picked up on restart or after the time configured in the server-conf.xml **monitorInterval** has passed. (The default is 30 seconds as shown below) + +[source,properties] + + From f13287d3101283fb60a4b3cb2d28cc2aa89056b3 Mon Sep 17 00:00:00 2001 From: CaldwellRenea <104075900+CaldwellRenea@users.noreply.github.com> Date: Wed, 1 Mar 2023 10:40:45 -0500 Subject: [PATCH 2/2] Update how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc --- ...nable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc b/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc index ce9eb2f9..1ff2ca6b 100644 --- a/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc +++ b/articles/modules/ROOT/pages/how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc @@ -1,5 +1,5 @@ = How to Enable Debug Logging in the Neo4j debug.log for Neo4j v5 -:slug: how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5.adoc +:slug: how-to-enable-debug-logging-in-the-neo4j-debug-log-for-neo4j-v5 :author: Renea Caldwell :category: logging :tags: configuration,logging