Use standard ID getter in log_id hook