The Neo4j server logs the information about the activities that takes place during the operating lifetime of the server. It is not an overhead; it is in fact an essential constituent for debugging, monitoring, and recovery. Neo4j provides support for logging of key server activity, HTTP request activity as well as garbage collection activity. Let us take a look at how to make use of these.
For event logging within the Neo4j server, the java.util.logging
library of Java is used. You can configure the logging parameters in the conf/logging.properties
file. The default level of logging is INFO, and the messages are printed on the terminal, as well as written to a rolling file located at data/log
. Depending on the development stage and requirements, you can change the default behavior or even turn off the logging, using:
java.util.logging.ConsoleHandler.level=OFF
This will turn off all console output. The log files have a size limit of 10M after...