Fix logger scope and use batchSize on cursor for replay