logging hack