ns3-bgp  0.2
BGP module for ns-3.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ns3::BgpLog Class Reference

The libbgp log forwarder class. More...

#include <bgp-log.h>

Inheritance diagram for ns3::BgpLog:
Inheritance graph
[legend]
Collaboration diagram for ns3::BgpLog:
Collaboration graph
[legend]

Public Member Functions

 BgpLog (const char *owner)
 Construct a new BgpLog object. More...
 
void SetOwner (const char *owner)
 Set the owner (prefix) of the log message. More...
 
- Public Member Functions inherited from libbgp::BgpLogHandler
void log (LogLevel level, const char *format_str,...)
 
void log (LogLevel level, const Serializable &serializable)
 
void setLogLevel (LogLevel level)
 
LogLevel getLogLevel () const
 

Protected Member Functions

void logImpl (const char *str)
 Log implementation. See libbgp document. More...
 

Protected Attributes

char * owner
 

Detailed Description

The libbgp log forwarder class.

Definition at line 22 of file bgp-log.h.

Constructor & Destructor Documentation

◆ BgpLog()

ns3::BgpLog::BgpLog ( const char *  owner)

Construct a new BgpLog object.

Parameters
ownerThe owner (prefix) of the log message

Definition at line 24 of file bgp-log.cc.

Member Function Documentation

◆ logImpl()

void ns3::BgpLog::logImpl ( const char *  str)
protectedvirtual

Log implementation. See libbgp document.

Parameters
strString to log.

Reimplemented from libbgp::BgpLogHandler.

Definition at line 37 of file bgp-log.cc.

◆ SetOwner()

void ns3::BgpLog::SetOwner ( const char *  owner)

Set the owner (prefix) of the log message.

Parameters
ownerThe owner (prefix) of the log message

Definition at line 49 of file bgp-log.cc.


The documentation for this class was generated from the following files: