Logs

This section describes breaking changes for Neo4j logs.

General changes

From the 4.0 version onwards, Neo4j logs have the name of the database to which the log line pertains, printed before the regular text. For example, [neo4j] or [system].

Example 1. Some log lines for the system database
2019-12-02 22:27:41.820+0000 INFO [o.n.k.d.Database] [system] No check point found in transaction log
2019-12-02 22:27:41.820+0000 INFO [o.n.k.d.Database] [system] Recovery required from position LogPosition{logVersion=0, byteOffset=64}
2019-12-02 22:27:41.820+0000 INFO [o.n.k.r.Recovery] [system]   10% completed
2019-12-02 22:27:41.820+0000 INFO [o.n.k.r.Recovery] [system]   20% completed
2019-12-02 22:27:41.820+0000 INFO [o.n.k.r.Recovery] [system]   30% completed
...

Other log lines might relate to the DBMS as a whole or be logged by a component that lives on a higher level but still operates on a particular database. For example:

Example 2. Some log lines from CoreDatabaseManager starting the Neo4j database
2019-12-02 22:27:41.964+0000 INFO [c.n.c.c.CoreDatabaseManager] Creating 'neo4j' database.
2019-12-02 22:27:41.967+0000 INFO [c.n.c.c.CoreDatabaseManager] Starting 'neo4j' database.
...

Changes to log configurations per Neo4j version

Configuration setting Neo4j 4.0 Neo4j 4.1 Neo4j 4.2 Neo4j 4.3

causal_clustering.middleware.logging.level

New

dbms.directories.transaction.logs.root

New

dbms.tx_log.preallocate

New

fabric.driver.logging.level

New

metrics.neo4j.logs.enabled

New

causal_clustering.middleware_logging.level

Removed

dbms.logs.timezone

Removed

metrics.neo4j.logrotation.enabled

Removed

causal_clustering.log_shipping_retry_timeout

New

dbms.logs.query.early_raw_logging_enabled

New

dbms.logs.query.parameter_full_entities

New

dbms.routing.driver.logging.level

New

dbms.logs.security.rotation.delay

Deprecated

dbms.logs.user.rotation.delay

Deprecated

dbms.logs.debug.rotation.delay

Deprecated

dbms.logs.debug.format

New

dbms.logs.default_format

New

dbms.logs.query.format

New

dbms.logs.query.obfuscate_literals

New

dbms.logs.query.plan_description_enabled

New

dbms.logs.query.transaction.enabled

New

dbms.logs.query.transaction_id.enabled

New

dbms.logs.query.transaction.threshold

New

dbms.logs.security.format

New

dbms.logs.user.format

New