title: Lift Log4JStopWatch on log4j2
body: <p>I have to migratge Log4JStopWatch. I tryed to figure out the souluten by google, but no success.</p>
  <p>Do you have a simple solution to lift Log4JStopWatch on log4j2.</p>
  <pre><code>public static org.perf4j.StopWatch.StopWatch getStopWatch( final StmtId stmtId, final String sql, final String idForCache ) {
      if ( stmtId != null &amp;&amp; !stmtId.useSyntaxForCaching() ) {
          return new StopWatch( idForCache );
      }
      // kommen nur ins PerformanceLogFile, wenn sie länger als 10 Sekunden brauchen
      return new Log4JStopWatch( sql ).setTimeThreshold( 10000 );
  }
  </code></pre>