PR:2693 Modified generate_logger_field function to fix logging of type ipv4.