Add ID-based logging