The logger is based on the TLM 2.0 convenience simple target socket, so needs the appropriate header, in addition to the standard TLM 2.0 header:
#include "tlm.h" #include "tlm_utils/simple_target_socket.h"