apoc.log.warn
Procedure APOC Full
apoc.log.warn(message, params) - logs warn message
Config parameters
The procedure support the following properties in the APOC configuration file (apoc.conf
):
name | type | default | description |
---|---|---|---|
apoc.user.log.type |
String |
|
Type of logging.
|
apoc.user.log.window.ops |
Long |
10 |
Number of log messages permitted in a time-window. If this quota is exceeded, log messags will be skipped. |
apoc.user.log.window.time |
Long |
10000 |
Length (in milliseconds) of the time-window. |
Usage Examples
We can log a message to neo4j.log
using the following query:
CALL apoc.log.warn('Hello %s', ['World']);
neo4j.log
2020-11-18 10:21:37.365+0000 WARN hello_world
We can query the contents of neo4j.log
using apoc.log.stream