class ConfiguredQueryLogger implements QueryLogger {

    @Override
    public void failure( ExecutingQuery query, Throwable failure )
    {
        log.error( logEntry( query.snapshot() ), failure );
    }

      ConfiguredQueryLogger( Log log, Config config );

}