add log_id method
change private method to protected