Skip to content

Commit

Permalink
logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Remme committed May 22, 2017
1 parent cb5f7bb commit de4c3c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vertx-pojongo/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d %-5p [%t] [%c{1}] %m (%F:%L) %n"/>
</Console>

<RollingFile name="vertx_logs" append="true" fileName="/Users/mremme/tmp/log/vertx.log"
filePattern="/Users/mremme/tmp/log/vertx/$${date:yyyy-MM}/vertx-%d{MM-dd-yyyy}-%i.log.gz" >
<PatternLayout pattern="%d{ISO8601} %-5p %c:%L - %m%n" />
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
</RollingFile>

<Async name="vertx_async">
<AppenderRef ref="vertx_logs"/>
</Async>
</Appenders>
<Loggers>
<Logger name="com.mongodb" level="fatal">
Expand All @@ -16,6 +29,10 @@
<Root level="debug">
<AppenderRef ref="Console"/>
</Root>
<Root level="DEBUG">
<AppenderRef ref="vertx_async" />
</Root>
</Loggers>
</Configuration>


Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public void massInsertWithComposite(TestContext context) {
dropTable(context);
final long startTime = System.currentTimeMillis();
List<Future> futureList = createFutureList(TABLENAME);

CompositeFuture cf = CompositeFuture.all(futureList);
cf.setHandler(result -> {
if (result.failed()) {
Expand Down

0 comments on commit de4c3c0

Please sign in to comment.