Add loging support