-
Notifications
You must be signed in to change notification settings - Fork 4
/
server-logs.xml
48 lines (44 loc) · 2.2 KB
/
server-logs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="ERROR" monitorInterval="5" packages="org.neo4j.logging.log4j">
<Appenders>
<!-- Default debug.log, please keep -->
<RollingRandomAccessFile name="DebugLog" fileName="${config:server.directories.logs}/debug.log"
filePattern="$${config:server.directories.logs}/debug.log.%02i">
<Neo4jDebugLogLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p [%c{1.}] %m%n"/>
<Policies>
<SizeBasedTriggeringPolicy size="20 MB"/>
</Policies>
<DefaultRolloverStrategy fileIndex="min" max="7"/>
</RollingRandomAccessFile>
<Console name="ConsoleAppender" target="SYSTEM_OUT">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSSZ}{GMT+0} %-5p %m%n"/>
<Filters>
<!--
Filter out most of the queries generated by the neo4j browser or the java driver
so it doesn't pollute the docker console logs
-->
<RegexFilter regex="(?si)(.*SHOW DATABASE.*|.*type: 'system'.*|.*SHOW ALL.*|.*EXPLAIN.*)" onMatch="DENY" onMismatch="NEUTRAL"/>
<!-- Do not log query start logs -->
<MapFilter onMatch="ACCEPT" onMismatch="NEUTRAL">
<KeyValuePair key="event" value="fail"/>
<KeyValuePair key="event" value="success"/>
</MapFilter>
</Filters>
</Console>
</Appenders>
<Loggers>
<!-- Log levels. One of DEBUG, INFO, WARN, ERROR or OFF -->
<!-- The debug log is used as the root logger to catch everything -->
<Root level="INFO">
<AppenderRef ref="DebugLog"/> <!-- Keep this -->
</Root>
<!-- The query log, must be named "QueryLogger" -->
<Logger name="QueryLogger" level="INFO" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
</Logger>
<!-- The security log, must be named "SecurityLogger" -->
<Logger name="SecurityLogger" level="DEBUG" additivity="false">
<AppenderRef ref="ConsoleAppender"/>
</Logger>
</Loggers>
</Configuration>