Add console logging class and log exception.