Adding logListener.