sP2P c++ STL *nix API  1.2
NAT traversal and peer-to-peer networking API providing all utilities needed to build peer-to-peer application straigth out of box
 All Classes Functions Variables Typedefs Enumerations Enumerator
sp2plib::Logger Class Reference

Public Types

typedef Delegate< ::std::string > * LoggerWrite
 Defines an alias type for onLoggerWrite delegate
 

Static Public Member Functions

static int WriteLogEntry (sP2PBase *sender,::std::string Text)
 Writes a log entry.
 
static int WriteLogEntry (::std::string sender,::std::string Text)
 Writes a log entry.
 
static void Activate ()
 Activates this Logger.
 
static void Deactivate ()
 Deactivates this Logger
 
static void Reset ()
 Resets this loger and attached events
 
static bool IsActive ()
 Gets value indicating logger is active or not
 
static Event< const char * > & onLoggerWrite ()
 Gets On-Log-Enrty-Write event, attach your handlers(sp2p Delegates to it)
 

Static Public Attributes

::std::string log_file
 The log file path if file is to be used for logging , otherwise set it blank.
 

Member Typedef Documentation

typedef Delegate< ::std::string>* sp2plib::Logger::LoggerWrite

Defines an alias type for onLoggerWrite delegate

Member Function Documentation

static void sp2plib::Logger::Activate ( )
static

Activates this Logger.

static void sp2plib::Logger::Deactivate ( )
static

Deactivates this Logger

static bool sp2plib::Logger::IsActive ( )
static

Gets value indicating logger is active or not

static Event<const char*>& sp2plib::Logger::onLoggerWrite ( )
static

Gets On-Log-Enrty-Write event, attach your handlers(sp2p Delegates to it)

static void sp2plib::Logger::Reset ( )
static

Resets this loger and attached events

static int sp2plib::Logger::WriteLogEntry ( sP2PBase sender,
::std::string  Text 
)
static

Writes a log entry.

Parameters
senderSender object
TextThe log entry text.
Returns
.
static int sp2plib::Logger::WriteLogEntry ( ::std::string  sender,
::std::string  Text 
)
static

Writes a log entry.

Parameters
senderSender object.
TextThe log entry text.
Returns
.

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