Logging
APOC provide a set of store procedures in order to add log functionality:
-
apoc.log.info
: logs info message -
apoc.log.error
: logs error message -
apoc.log.warn
: logs warn message -
apoc.log.debug
: logs debug message
Every log procedure has the following signature:
apoc.log.<name>(message, params)
Available configuration:
property | type | description |
---|---|---|
|
|
type of logging:
|
|
|
num of logs permitted in a time-window, exceeded this quota every log message will be skip |
|
|
the length (in milliseconds) of the time-window (default 10 seconds) |
Example:
The following call (with the default configuration):
call apoc.log.info('Hello %s', ['World'])
produces the following output in the Neo4j log:
2019-06-25 11:02:07.458+0000 INFO hello_world