public void logSlowQuery(final Statement statement, final long startTimeNanos, final JdbcSessionContext context) {
		if ( logSlowQuery < 1 ) {
			return;
		}
		if ( startTimeNanos <= 0 ) {
			throw new IllegalArgumentException( "startTimeNanos [" + startTimeNanos + "] should be greater than 0" );
		}

		final long queryExecutionMillis = elapsedFrom( startTimeNanos );

		if ( queryExecutionMillis > logSlowQuery ) {
			final String sql = statement.toString();
			logSlowQueryInternal( context, queryExecutionMillis, sql );
		}
	}
@Test
	public void testLogSlowQueryFromStatementWhenLoggingDisabled() {
		SqlStatementLogger sqlStatementLogger = new SqlStatementLogger( false, false, false, 0L );
		AtomicInteger callCounterToString = new AtomicInteger();
		Statement statement = mockStatementForCountingToString( callCounterToString );

		sqlStatementLogger.logSlowQuery( statement, System.nanoTime(), null );
		assertEquals( 0, callCounterToString.get() );
	}