Add logging in file