package com.github.triceo.splitlog;

import java.util.concurrent.TimeUnit;

import org.junit.Rule;
import org.junit.rules.Timeout;

/**
 * Base class for all Splitlog tests. Will enforce a default timeout.
 */
public abstract class AbstractSplitlogTest {

    @Rule
    public Timeout globalTimeout = new Timeout((int) TimeUnit.MINUTES.toMillis(2));

}

@@ -116,22 +116,185 @@
 .rules.T
-imeout
+estRule;%0Aimport org.junit.rules.TestWatcher;%0Aimport org.junit.rules.Timeout;%0Aimport org.junit.runner.Description;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory
 ;%0A%0A/**%0A 
@@ -360,16 +360,62 @@
  timeout
+ and add%0A * some useful test execution logging
 .%0A */%0Apu
@@ -466,96 +466,582 @@
     
-@Rule%0A    public Timeout globalTimeout = new Timeout((int) TimeUnit.MINUTES.toMillis(2))
+private static final Logger LOGGER = LoggerFactory.getLogger(AbstractSplitlogTest.class);%0A%0A    @Rule%0A    public Timeout globalTimeout = new Timeout((int) TimeUnit.MINUTES.toMillis(2));%0A%0A    @Rule%0A    public TestRule watchman = new TestWatcher() %7B%0A%0A        @Override%0A        protected void finished(final Description d) %7B%0A            AbstractSplitlogTest.LOGGER.info(%22----- Finished test: %7B%7D%5Cn%22, d);%0A        %7D%0A%0A        @Override%0A        protected void starting(final Description d) %7B%0A            AbstractSplitlogTest.LOGGER.info(%22----- Starting test: %7B%7D%22, d);%0A        %7D%0A    %7D
 ;%0A%0A%7D

Test execution logging