argos_log.h File Reference
#include <argos3/core/config.h>
#include <iomanip>
#include <string>
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <argos3/core/utility/logging/argos_colored_text.h>
Include dependency graph for argos_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  argos::CARGoSLog
 

Namespaces

 argos
 The namespace containing all the ARGoS related code.
 

Macros

#define DEBUG(MSG, ...)   { fprintf(stderr, "[DEBUG] "); for(size_t ARGOS_I = 0; ARGOS_I < DEBUG_INDENTATION; ++ARGOS_I) fprintf(stderr, " "); fprintf(stderr, MSG, ##__VA_ARGS__); }
 
#define DEBUG_FUNCTION_ENTER   { ++DEBUG_INDENTATION; DEBUG("%s - START\n", __PRETTY_FUNCTION__ ); }
 
#define DEBUG_FUNCTION_EXIT   { DEBUG("%s - END\n", __PRETTY_FUNCTION__ ); --DEBUG_INDENTATION; }
 
#define TRACE(LINE)   LINE; DEBUG(#LINE "\n");
 
#define RLOG   LOG << "[" << GetId() << "] "
 
#define RLOGERR   LOGERR << "[" << GetId() << "] "
 

Macro Definition Documentation

#define DEBUG (   MSG,
  ... 
)    { fprintf(stderr, "[DEBUG] "); for(size_t ARGOS_I = 0; ARGOS_I < DEBUG_INDENTATION; ++ARGOS_I) fprintf(stderr, " "); fprintf(stderr, MSG, ##__VA_ARGS__); }

Definition at line 48 of file argos_log.h.

#define DEBUG_FUNCTION_ENTER   { ++DEBUG_INDENTATION; DEBUG("%s - START\n", __PRETTY_FUNCTION__ ); }

Definition at line 50 of file argos_log.h.

#define DEBUG_FUNCTION_EXIT   { DEBUG("%s - END\n", __PRETTY_FUNCTION__ ); --DEBUG_INDENTATION; }

Definition at line 52 of file argos_log.h.

#define RLOG   LOG << "[" << GetId() << "] "

Definition at line 187 of file argos_log.h.

#define RLOGERR   LOGERR << "[" << GetId() << "] "

Definition at line 188 of file argos_log.h.

#define TRACE (   LINE)    LINE; DEBUG(#LINE "\n");

Definition at line 54 of file argos_log.h.