#390 - ENH: Add Change log mechanism for easy fine grained logging of insert, update, delete activity.

This adds default implementations for register,filter, prepare and log of the change sets.
This commit is contained in:
Robin Bygrave committed 2015-08-22 12:10:30 +12:00
1 parent 31099f6dda
commit fe8a32ea18
25 files changed
+764 -19

No files matched your search

+5
View File
@@ -80,6 +80,11 @@ datasource.h2other.password=
datasource.h2other.databaseUrl=jdbc:h2:mem:h2other;DB_CLOSE_DELAY=-1
datasource.h2other.databaseDriver=org.h2.Driver
datasource.h2otherfind.username=sa
datasource.h2otherfind.password=
datasource.h2otherfind.databaseUrl=jdbc:h2:mem:h2otherfind;DB_CLOSE_DELAY=-1
datasource.h2otherfind.databaseDriver=org.h2.Driver
datasource.h2ebasicver.username=sa
datasource.h2ebasicver.password=
datasource.h2ebasicver.databaseUrl=jdbc:h2:mem:h2ebasicver;DB_CLOSE_DELAY=-1
+16 -1
View File
@@ -9,7 +9,7 @@
</appender>
<appender name="APPLICATION" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>log/ebean.log</File>
<File>log/application.log</File>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>TRACE</level>
</filter>
@@ -22,6 +22,21 @@
</encoder>
</appender>
<appender name="ELASTIC_CHANGE_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>log/changeLog.log</File>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>log/changeLog.log.%d{yyyy-MM-dd}</FileNamePattern>
<MaxHistory>90</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>-- %d{HH:mm:ss.SSS} %msg%n</pattern>
</encoder>
</appender>
<logger name="org.avaje.ebean.ElasticChangeLog" level="TRACE" additivity="false">
<appender-ref ref="ELASTIC_CHANGE_LOG" />
</logger>
<root level="WARN">
<appender-ref ref="APPLICATION"/>
<appender-ref ref="STDOUT"/>