YARP
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.

Classes

class  yarp::os::Log
 

Namespaces

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

Macros

#define __YFUNCTION__   __PRETTY_FUNCTION__
 
#define YARP_ATTRIBUTE_FORMAT(style, fmt, args)   __attribute__((format(printf, (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);
 

Functions

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

◆ __YFUNCTION__

#define __YFUNCTION__   __PRETTY_FUNCTION__

Definition at line 16 of file Log.h.

◆ YARP_ATTRIBUTE_FORMAT

#define YARP_ATTRIBUTE_FORMAT (   style,
  fmt,
  args 
)    __attribute__((format(printf, (fmt), (args))))

Definition at line 30 of file Log.h.

◆ YARP_FIXME_NOTIMPLEMENTED

#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 415 of file Log.cpp.