Add logger for NN algorithm.