17 NS_LOG_COMPONENT_DEFINE(
"BgpLog");
25 this->owner = strdup(owner);
38 char* str_stripped = strdup(str);
39 str_stripped[strlen(str_stripped)-1] =
'\0';
40 NS_LOG_INFO(owner <<
" libbgp: " << str_stripped);
51 this->owner = strdup(owner);
void SetOwner(const char *owner)
Set the owner (prefix) of the log message.
BgpLog(const char *owner)
Construct a new BgpLog object.
void logImpl(const char *str)
Log implementation. See libbgp document.