log working