Skip to content

Commit be18c88

Browse files
Add note on configuring logging in embedded Neo4j (#2690) (#2726)
Co-authored-by: Reneta Popova <[email protected]>
1 parent 579960e commit be18c88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/ROOT/pages/monitoring/logging.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Neo4j provides logs for monitoring purposes.
66
The logs are stored in the _logs_ directory.
77
If you want to use a custom directory, set the path to that directory in the _neo4j.conf_ file by using the parameter xref:configuration/configuration-settings.adoc#config_server.directories.logs[`server.directories.logs`].
88

9+
910
== Log files
1011

1112
The following table describes the log files that are available in Neo4j and their default configuration.
@@ -311,6 +312,14 @@ The default logging configuration is a good starting point, but you might want t
311312
The following sections describe some Log4j configuration elements and how to use them to customize the logging configuration.
312313
For additional information and more advanced customizations, such as filtering and extensions, see the https://logging.apache.org/log4j/2.x/manual/configuration.html[Log4j official documentation on configuration].
313314

315+
[NOTE]
316+
====
317+
If Neo4j is embedded in your Java applications, you must provide an implementation of `org.neo4j.logging.LogProvider`.
318+
Depending on how you set up your log provider, it uses or ignores the _user-logs.xml_ file.
319+
For details, refer to link:{neo4j-docs-base-uri}/java-reference/{page-version}/java-embedded/logging/[Java Reference -> Using Neo4j embedded in Java applications].
320+
====
321+
322+
314323
[[general-logging-appenders]]
315324
=== Appenders
316325
All Log4j standard appenders are available in Neo4j.

0 commit comments

Comments
 (0)