Skip to content

Commit

Permalink
Issue #000 fix: test log4j2.xml to use with docker for local testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
maheshkumargangula committed May 3, 2021
1 parent 6101f09 commit f7158d8
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d [%t] %-5level %logger{36} - %msg%n" />
</Console>
<RollingFile name="RollingFileAppender" fileName="/var/lib/neo4j/logs/plugins/txn-handler/neo4j_learning_extension.log"
filePattern="/var/lib/neo4j/logs/plugins/txn-handler/neo4j_learning_extension-%d{MM-dd-yyyy-hh}-%i.log">
<PatternLayout>
<Pattern>%d [%t] %-5level %logger{36} - %msg%n
</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="250 MB" />
<OnStartupTriggeringPolicy />
</Policies>
</RollingFile>
<RollingRandomAccessFile name="GraphEventAppender" fileName="/var/lib/neo4j/logs/plugins/txn-handler/learning_graph_event_neo4j.log"
filePattern="/var/lib/neo4j/logs/plugins/txn-handler/learning_graph_event_neo4j-%d{MM-dd-yyyy-hh}-%i.log">
<PatternLayout>
<Pattern>%d %msg%n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="250 MB" />
<OnStartupTriggeringPolicy />
</Policies>
</RollingRandomAccessFile>
</Appenders>
<Loggers>
<Logger name="GraphEventLogger" level="INFO" additivity="false">
<AppenderRef ref="GraphEventAppender" />
</Logger>
<Root level="INFO">
<AppenderRef ref="RollingFileAppender" />
</Root>
</Loggers>
</Configuration>

0 comments on commit f7158d8

Please sign in to comment.