ARGoS 3
A parallel, multi-engine simulator for swarm robotics
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

namespace  argos
 The namespace containing all the ARGoS related code.
 

Macros

#define DEBUG(MSG, ...)
 
#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)
 
#define RLOG   LOG << "[" << GetId() << "] "
 
#define RLOGERR   LOGERR << "[" << GetId() << "] "
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG ( MSG,
... )
Value:
{ 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.

◆ DEBUG_FUNCTION_ENTER

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

Definition at line 50 of file argos_log.h.

◆ DEBUG_FUNCTION_EXIT

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

Definition at line 52 of file argos_log.h.

◆ RLOG

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

Definition at line 187 of file argos_log.h.

◆ RLOGERR

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

Definition at line 188 of file argos_log.h.

◆ TRACE

#define TRACE ( LINE)
Value:
LINE; DEBUG(#LINE "\n");
#define DEBUG(MSG,...)
Definition argos_log.h:48

Definition at line 54 of file argos_log.h.