add log_id method

add log_id method
change private method to protected