Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

log.h File Reference

#include <string>
#include <list>
#include <strstream>
#include <fstream>
#include "receiver.h"

Go to the source code of this file.

Namespaces

namespace  utils
namespace  utils::logging

Defines

#define log   utils::logging::dolog(__FILE__, __LINE__)
 creates a dolog object. More...

#define dlog   utils::logging::dolog(__FILE__, __LINE__)
 creates a dolog object in DEBUG mode only. More...

#define LOG(v)   log << #v << '=' << v << endl;
 Logs a value. More...

#define DLOG(v)   dlog << #v << '=' << v << endl;
 Logs a value in DEBUG mode only. More...


Define Documentation

#define DLOG      dlog << #v << '=' << v << endl;
 

Logs a value in DEBUG mode only.

If NDEBUG is defined this macro expands to a no-op. Otherwise it produces logging output like "name of variable=value of variable."

#define LOG      log << #v << '=' << v << endl;
 

Logs a value.

This macro produces logging output like "name of variable=value of variable."

#define dlog   utils::logging::dolog(__FILE__, __LINE__)
 

creates a dolog object in DEBUG mode only.

If NDEBUG is defined this macro expands to a no-op. Therefore you can use it to produce some logging in debug mode only.

#define log   utils::logging::dolog(__FILE__, __LINE__)
 

creates a dolog object.

The so-created dolog object stores the current source file and line number. It then collects all data sent to it via the '<<' operator. On destruction its contents is written to the application's log for further proceeding.


Generated on Mon Oct 22 17:03:48 2001 for rfc822 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001