NewNet::Log Class Reference

Controllable logging class. More...

#include <nnlog.h>

List of all members.

Public Member Functions

void operator() (const std::string &domain, const char *,...)
 Print a message.
void enable (const std::string &domain)
 Enable a message domain.
void disable (const std::string &domain)
 Disable a message domain.


Detailed Description

This class will let you output messages to the console in a controlled fashion. It works by enabling and disabling domains where events can happen.

Definition at line 32 of file nnlog.h.


Member Function Documentation

void NewNet::Log::operator() ( const std::string &  domain,
const char *  ,
  ... 
)

Print a message if the specified domain is enabled.

Definition at line 27 of file nnlog.cpp.

void NewNet::Log::enable ( const std::string &  domain  ) 

This will enable printing messages of that domain. A special case is 'ALL' in which case all messages will be printed.

Definition at line 41 of file nnlog.cpp.

void NewNet::Log::disable ( const std::string &  domain  ) 

This will disable printing messages of that domain.

Definition at line 49 of file nnlog.cpp.


The documentation for this class was generated from the following files:
Generated on Sun Jan 7 14:00:01 2007 for NewNet by  doxygen 1.5.1