log.hxx File Reference

#include <iostream>
#include <sstream>

Include dependency graph for log.hxx:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LOGGING
#define LOGSTREAM(level, pipe)
#define OBJLOGSTREAM(obj, level, pipe)
#define EXCEPTIONSTREAM(loglevel, exception, pipe)


Define Documentation

#define EXCEPTIONSTREAM ( loglevel,
exception,
pipe   ) 

Value:

do { \
                std::ostringstream ostr; \
                ostr << pipe; \
                std::ostream* streamptr; \
                if ((streamptr=get_logstream(loglevel))!=NULL) \
                    (*streamptr) << ostr.str() << std::endl; \
                throw exception(ostr.str()); \
            } while (0)

Referenced by libt2n::socket_server::fill_buffer(), libt2n::socket_handler::fill_buffer(), libt2n::command_server::handle(), libt2n::socket_server::new_connection(), libt2n::socket_handler::set_socket_options(), libt2n::socket_server::socket_server(), libt2n::socket_handler::socket_write(), libt2n::socket_server::start_listening(), and libt2n::socket_handler::wait_ready_to_write().

#define LOGGING

#define LOGSTREAM ( level,
pipe   ) 

#define OBJLOGSTREAM ( obj,
level,
pipe   ) 

Value:

do { \
                std::ostream* streamptr; \
                if ((streamptr=obj.get_logstream(level))!=NULL) \
                    (*streamptr) << pipe << std::endl; \
            } while (0)

Referenced by libt2n::command_server::handle_packet().


Generated on Fri Sep 26 15:37:01 2008 for libt2n by  doxygen 1.5.6