YARP
Yet Another Robot Platform
Log.cpp File Reference
#include <yarp/os/Log.h>
#include <yarp/os/LogComponent.h>
#include <yarp/os/NetType.h>
#include <yarp/os/Network.h>
#include <yarp/os/Os.h>
#include <yarp/os/SystemClock.h>
#include <yarp/os/SystemInfo.h>
#include <yarp/os/Time.h>
#include <yarp/os/impl/LogForwarder.h>
#include <yarp/os/impl/ThreadImpl.h>
#include <yarp/os/impl/Storable.h>
#include <algorithm>
#include <atomic>
#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iomanip>
#include <mutex>
#include <sstream>
#include <execinfo.h>
#include <yarp/conf/system.h>
#include <yarp/os/LogStream.h>
#include <cstdio>
+ Include dependency graph for Log.cpp:

Go to the source code of this file.

Classes

class  yarp::os::impl::LogPrivate
 

Macros

#define BOLD_RED   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;31m" : "")
 
#define BOLD_GREEN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;32m" : "")
 
#define BOLD_YELLOW   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;33m" : "")
 
#define BOLD_BLUE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;34m" : "")
 
#define BOLD_MAGENTA   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;35m" : "")
 
#define BOLD_CYAN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;36m" : "")
 
#define BOLD_WHITE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;37m" : "")
 
#define RED   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[31m" : "")
 
#define GREEN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[32m" : "")
 
#define YELLOW   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[33m" : "")
 
#define BLUE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[34m" : "")
 
#define MAGENTA   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[35m" : "")
 
#define CYAN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[36m" : "")
 
#define WHITE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[37m" : "")
 
#define RED_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[41m" : "")
 
#define GREEN_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[42m" : "")
 
#define YELLOW_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[43m" : "")
 
#define BLUE_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[44m" : "")
 
#define MAGENTA_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[45m" : "")
 
#define CYAN_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[46m" : "")
 
#define WHITE_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[47m" : "")
 
#define CLEAR   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[00m" : "")
 

Functions

void yarp_print_trace (FILE *out, const char *file, unsigned int line)
 Low level function for printing a stack trace, if implemented (ACE or gcc/Linux). More...
 

Macro Definition Documentation

◆ BLUE

#define BLUE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[34m" : "")

Definition at line 187 of file Log.cpp.

◆ BLUE_BG

#define BLUE_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[44m" : "")

Definition at line 194 of file Log.cpp.

◆ BOLD_BLUE

#define BOLD_BLUE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;34m" : "")

Definition at line 180 of file Log.cpp.

◆ BOLD_CYAN

#define BOLD_CYAN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;36m" : "")

Definition at line 182 of file Log.cpp.

◆ BOLD_GREEN

#define BOLD_GREEN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;32m" : "")

Definition at line 178 of file Log.cpp.

◆ BOLD_MAGENTA

#define BOLD_MAGENTA   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;35m" : "")

Definition at line 181 of file Log.cpp.

◆ BOLD_RED

#define BOLD_RED   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;31m" : "")

Definition at line 177 of file Log.cpp.

◆ BOLD_WHITE

#define BOLD_WHITE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;37m" : "")

Definition at line 183 of file Log.cpp.

◆ BOLD_YELLOW

#define BOLD_YELLOW   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[01;33m" : "")

Definition at line 179 of file Log.cpp.

◆ CLEAR

#define CLEAR   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[00m" : "")

Definition at line 198 of file Log.cpp.

◆ CYAN

#define CYAN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[36m" : "")

Definition at line 189 of file Log.cpp.

◆ CYAN_BG

#define CYAN_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[46m" : "")

Definition at line 196 of file Log.cpp.

◆ GREEN

#define GREEN   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[32m" : "")

Definition at line 185 of file Log.cpp.

◆ GREEN_BG

#define GREEN_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[42m" : "")

Definition at line 192 of file Log.cpp.

◆ MAGENTA

#define MAGENTA   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[35m" : "")

Definition at line 188 of file Log.cpp.

◆ MAGENTA_BG

#define MAGENTA_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[45m" : "")

Definition at line 195 of file Log.cpp.

◆ RED

#define RED   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[31m" : "")

Definition at line 184 of file Log.cpp.

◆ RED_BG

#define RED_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[41m" : "")

Definition at line 191 of file Log.cpp.

◆ WHITE

#define WHITE   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[37m" : "")

Definition at line 190 of file Log.cpp.

◆ WHITE_BG

#define WHITE_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[47m" : "")

Definition at line 197 of file Log.cpp.

◆ YELLOW

#define YELLOW   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[33m" : "")

Definition at line 186 of file Log.cpp.

◆ YELLOW_BG

#define YELLOW_BG   (yarp::os::impl::LogPrivate::colored_output.load() ? "\033[43m" : "")

Definition at line 193 of file Log.cpp.

Function Documentation

◆ yarp_print_trace()

void yarp_print_trace ( FILE *  out,
const char *  file,
unsigned int  line 
)

Low level function for printing a stack trace, if implemented (ACE or gcc/Linux).

Definition at line 1068 of file Log.cpp.