n2nc::system::Logger Class Reference

Provides a thead-safe and reentrant logging facility. More...

#include <logger.h>

Collaboration diagram for n2nc::system::Logger:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Loggeroperator<< (char *str)
Loggeroperator<< (std::string str)
Loggeroperator<< (std::string &str)

Static Public Member Functions

static int out (std::string &str)
static int out (std::string str)
static int out (char *str)
static void print (char *frm,...)
static std::ostringstream & get ()
static std::ostringstream & gett ()
static std::ostringstream & flush ()
static std::ostream & dlog ()
static std::ostream & dlog (std::ostream &os)

Static Public Attributes

static flush_t fl
static endl_flush_t fendl

Friends

void operator<< (std::ostream &, Logger::endl_flush_t)
void operator<< (std::ostream &, Logger::flush_t)

Classes

class  endl_flush_t
class  flush_t


Detailed Description

Provides a thead-safe and reentrant logging facility.

more about logger

Author:
fabsoft <fabsoft@gmail.com> FIXME thread-safety & reentrant compliance needed !

Definition at line 28 of file logger.h.


Member Function Documentation

std::ostringstream & n2nc::system::Logger::get (  )  [static]

Returns:
the ostringstream logger

Definition at line 23 of file logger.cpp.

std::ostringstream & n2nc::system::Logger::gett (  )  [static]

Returns:
the ostringstream logger with additional thread info

Definition at line 27 of file logger.cpp.

std::ostream & n2nc::system::Logger::dlog (  )  [static]

Debug log Debug output

Definition at line 96 of file logger.cpp.

std::ostream & n2nc::system::Logger::dlog ( std::ostream &  os  )  [static]

Debug output to stream os

Definition at line 104 of file logger.cpp.


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

Generated on Mon Oct 6 19:33:01 2008 for n2nc by  doxygen 1.5.5