Yet Another Robot Platform
Log.h File Reference
#include <yarp/os/api.h>
#include <iosfwd>
+ Include dependency graph for Log.h:

Go to the source code of this file.


class  yarp::os::Log


 The main, catch-all namespace for YARP.
 An interface to the operating system, including Port based communication.
 The components from which ports and connections are built.


#define __YFUNCTION__   "(unknown function)"
#define YARP_ATTRIBUTE_FORMAT(style, fmt, args)
#define yTrace   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).trace
#define yDebug   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).debug
#define yInfo   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).info
#define yWarning   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).warning
#define yError   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).error
#define yFatal   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).fatal
#define yAssert(x)   if (!(x)) { yFatal("Assertion failure at %s:%d (%s)", __FILE__, __LINE__, #x); }
#define YARP_FIXME_NOTIMPLEMENTED(what)   yWarning("FIXME: %s not yet implemented", what);


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

Macro Definition Documentation


#define __YFUNCTION__   "(unknown function)"

Definition at line 22 of file Log.h.


#define YARP_ATTRIBUTE_FORMAT (   style,

Definition at line 32 of file Log.h.


#define YARP_FIXME_NOTIMPLEMENTED (   what)    yWarning("FIXME: %s not yet implemented", what);

Definition at line 106 of file Log.h.

◆ yAssert

#define yAssert (   x)    if (!(x)) { yFatal("Assertion failure at %s:%d (%s)", __FILE__, __LINE__, #x); }

Definition at line 104 of file Log.h.

◆ yDebug

#define yDebug   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).debug

Definition at line 98 of file Log.h.

◆ yError

#define yError   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).error

Definition at line 101 of file Log.h.

◆ yFatal

#define yFatal   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).fatal

Definition at line 102 of file Log.h.

◆ yInfo

#define yInfo   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).info

Definition at line 99 of file Log.h.

◆ yTrace

#define yTrace   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).trace

Definition at line 97 of file Log.h.

◆ yWarning

#define yWarning   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).warning

Definition at line 100 of file Log.h.

Function Documentation

◆ yarp_print_trace()

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

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

Definition at line 420 of file Log.cpp.