YARP
Yet Another Robot Platform
Log.h File Reference
#include <yarp/os/api.h>
#include <cstdint>
#include <iosfwd>
#include <mutex>
+ 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.
 

Macros

#define __YFUNCTION__   __func__
 
#define YARP_ATTRIBUTE_FORMAT(style, fmt, args)
 
#define YARP_ONCE_CALLBACK
 
#define YARP_THREADONCE_CALLBACK
 
#define YARP_THROTTLE_CALLBACK(period)
 
#define YARP_THREADTHROTTLE_CALLBACK(period)
 
#define yTrace(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).trace(__VA_ARGS__)
 
#define yTraceOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yTraceThreadOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yTraceThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yTraceThreadThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yTraceExternalTime(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).trace(__VA_ARGS__)
 
#define yTraceExternalTimeOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yTraceExternalTimeThreadOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yTraceExternalTimeThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yTraceExternalTimeThreadThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yDebug(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).debug(__VA_ARGS__)
 
#define yDebugOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yDebugThreadOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yDebugThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yDebugThreadThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yDebugExternalTime(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).debug(__VA_ARGS__)
 
#define yDebugExternalTimeOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yDebugExternalTimeThreadOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yDebugExternalTimeThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yDebugExternalTimeThreadThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yInfo(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).info(__VA_ARGS__)
 
#define yInfoOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).info(__VA_ARGS__)
 
#define yInfoThreadOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).info(__VA_ARGS__)
 
#define yInfoThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yInfoThreadThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yInfoExternalTime(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).info(__VA_ARGS__)
 
#define yInfoExternalTimeOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).info(__VA_ARGS__)
 
#define yInfoExternalTimeThreadOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).info(__VA_ARGS__)
 
#define yInfoExternalTimeThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yInfoExternalTimeThreadThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yWarning(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).warning(__VA_ARGS__)
 
#define yWarningOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yWarningThreadOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yWarningThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yWarningThreadThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yWarningExternalTime(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).warning(__VA_ARGS__)
 
#define yWarningExternalTimeOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yWarningExternalTimeThreadOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yWarningExternalTimeThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yWarningExternalTimeThreadThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yError(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).error(__VA_ARGS__)
 
#define yErrorOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).error(__VA_ARGS__)
 
#define yErrorThreadOnce(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).error(__VA_ARGS__)
 
#define yErrorThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yErrorThreadThrottle(period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yErrorExternalTime(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).error(__VA_ARGS__)
 
#define yErrorExternalTimeOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).error(__VA_ARGS__)
 
#define yErrorExternalTimeThreadOnce(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).error(__VA_ARGS__)
 
#define yErrorExternalTimeThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yErrorExternalTimeThreadThrottle(externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yFatal(...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).fatal(__VA_ARGS__)
 
#define yFatalExternalTime(externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).fatal(__VA_ARGS__)
 
#define yAssert(x)
 
#define yAssertExternalTime(externaltime, x)
 
#define YARP_FIXME_NOTIMPLEMENTED(what)   yWarning("FIXME: %s not yet implemented", what);
 

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

◆ __YFUNCTION__

#define __YFUNCTION__   __func__

Definition at line 23 of file Log.h.

◆ YARP_ATTRIBUTE_FORMAT

#define YARP_ATTRIBUTE_FORMAT (   style,
  fmt,
  args 
)

Definition at line 35 of file Log.h.

◆ YARP_FIXME_NOTIMPLEMENTED

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

Definition at line 310 of file Log.h.

◆ YARP_ONCE_CALLBACK

#define YARP_ONCE_CALLBACK
Value:
[](){ \
static std::atomic_flag flag = ATOMIC_FLAG_INIT; \
return !flag.test_and_set(); \
}

Definition at line 174 of file Log.h.

◆ YARP_THREADONCE_CALLBACK

#define YARP_THREADONCE_CALLBACK
Value:
[](){ \
thread_local std::atomic_flag flag = ATOMIC_FLAG_INIT; \
return !flag.test_and_set(); \
}

Definition at line 180 of file Log.h.

◆ YARP_THREADTHROTTLE_CALLBACK

#define YARP_THREADTHROTTLE_CALLBACK (   period)
Value:
[](){ \
thread_local double last = -period; \
if (now >= last + period) { \
last = now; \
return true; \
} \
return false; \
}

Definition at line 199 of file Log.h.

◆ YARP_THROTTLE_CALLBACK

#define YARP_THROTTLE_CALLBACK (   period)
Value:
[](){ \
static double last = -period; \
static std::mutex mutex; \
std::lock_guard<std::mutex> lock(mutex); \
if (now >= last + period) { \
last = now; \
return true; \
} \
return false; \
}

Definition at line 186 of file Log.h.

◆ yAssert

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

Definition at line 297 of file Log.h.

◆ yAssertExternalTime

#define yAssertExternalTime (   externaltime,
 
)
Value:
if (!(x)) { \
yFatalExternalTime(externaltime, "Assertion failure at %s:%d (%s)", __FILE__, __LINE__, #x); \
}

Definition at line 301 of file Log.h.

◆ yDebug

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

Definition at line 237 of file Log.h.

◆ yDebugExternalTime

#define yDebugExternalTime (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).debug(__VA_ARGS__)

Definition at line 242 of file Log.h.

◆ yDebugExternalTimeOnce

#define yDebugExternalTimeOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).debug(__VA_ARGS__)

Definition at line 243 of file Log.h.

◆ yDebugExternalTimeThreadOnce

#define yDebugExternalTimeThreadOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).debug(__VA_ARGS__)

Definition at line 244 of file Log.h.

◆ yDebugExternalTimeThreadThrottle

#define yDebugExternalTimeThreadThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).debug(__VA_ARGS__)

Definition at line 246 of file Log.h.

◆ yDebugExternalTimeThrottle

#define yDebugExternalTimeThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).debug(__VA_ARGS__)

Definition at line 245 of file Log.h.

◆ yDebugOnce

#define yDebugOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).debug(__VA_ARGS__)

Definition at line 238 of file Log.h.

◆ yDebugThreadOnce

#define yDebugThreadOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).debug(__VA_ARGS__)

Definition at line 239 of file Log.h.

◆ yDebugThreadThrottle

#define yDebugThreadThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).debug(__VA_ARGS__)

Definition at line 241 of file Log.h.

◆ yDebugThrottle

#define yDebugThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).debug(__VA_ARGS__)

Definition at line 240 of file Log.h.

◆ yError

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

Definition at line 282 of file Log.h.

◆ yErrorExternalTime

#define yErrorExternalTime (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).error(__VA_ARGS__)

Definition at line 287 of file Log.h.

◆ yErrorExternalTimeOnce

#define yErrorExternalTimeOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).error(__VA_ARGS__)

Definition at line 288 of file Log.h.

◆ yErrorExternalTimeThreadOnce

#define yErrorExternalTimeThreadOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).error(__VA_ARGS__)

Definition at line 289 of file Log.h.

◆ yErrorExternalTimeThreadThrottle

#define yErrorExternalTimeThreadThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).error(__VA_ARGS__)

Definition at line 291 of file Log.h.

◆ yErrorExternalTimeThrottle

#define yErrorExternalTimeThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).error(__VA_ARGS__)

Definition at line 290 of file Log.h.

◆ yErrorOnce

#define yErrorOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).error(__VA_ARGS__)

Definition at line 283 of file Log.h.

◆ yErrorThreadOnce

#define yErrorThreadOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).error(__VA_ARGS__)

Definition at line 284 of file Log.h.

◆ yErrorThreadThrottle

#define yErrorThreadThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).error(__VA_ARGS__)

Definition at line 286 of file Log.h.

◆ yErrorThrottle

#define yErrorThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).error(__VA_ARGS__)

Definition at line 285 of file Log.h.

◆ yFatal

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

Definition at line 293 of file Log.h.

◆ yFatalExternalTime

#define yFatalExternalTime (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).fatal(__VA_ARGS__)

Definition at line 294 of file Log.h.

◆ yInfo

#define yInfo (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__).info(__VA_ARGS__)
Examples
os/summer/summer.cpp.

Definition at line 260 of file Log.h.

◆ yInfoExternalTime

#define yInfoExternalTime (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).info(__VA_ARGS__)

Definition at line 265 of file Log.h.

◆ yInfoExternalTimeOnce

#define yInfoExternalTimeOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).info(__VA_ARGS__)

Definition at line 266 of file Log.h.

◆ yInfoExternalTimeThreadOnce

#define yInfoExternalTimeThreadOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).info(__VA_ARGS__)

Definition at line 267 of file Log.h.

◆ yInfoExternalTimeThreadThrottle

#define yInfoExternalTimeThreadThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).info(__VA_ARGS__)

Definition at line 269 of file Log.h.

◆ yInfoExternalTimeThrottle

#define yInfoExternalTimeThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).info(__VA_ARGS__)

Definition at line 268 of file Log.h.

◆ yInfoOnce

#define yInfoOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).info(__VA_ARGS__)

Definition at line 261 of file Log.h.

◆ yInfoThreadOnce

#define yInfoThreadOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).info(__VA_ARGS__)

Definition at line 262 of file Log.h.

◆ yInfoThreadThrottle

#define yInfoThreadThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).info(__VA_ARGS__)

Definition at line 264 of file Log.h.

◆ yInfoThrottle

#define yInfoThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).info(__VA_ARGS__)

Definition at line 263 of file Log.h.

◆ yTrace

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

Definition at line 213 of file Log.h.

◆ yTraceExternalTime

#define yTraceExternalTime (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).trace(__VA_ARGS__)

Definition at line 218 of file Log.h.

◆ yTraceExternalTimeOnce

#define yTraceExternalTimeOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).trace(__VA_ARGS__)

Definition at line 219 of file Log.h.

◆ yTraceExternalTimeThreadOnce

#define yTraceExternalTimeThreadOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).trace(__VA_ARGS__)

Definition at line 220 of file Log.h.

◆ yTraceExternalTimeThreadThrottle

#define yTraceExternalTimeThreadThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).trace(__VA_ARGS__)

Definition at line 222 of file Log.h.

◆ yTraceExternalTimeThrottle

#define yTraceExternalTimeThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).trace(__VA_ARGS__)

Definition at line 221 of file Log.h.

◆ yTraceOnce

#define yTraceOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).trace(__VA_ARGS__)

Definition at line 214 of file Log.h.

◆ yTraceThreadOnce

#define yTraceThreadOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).trace(__VA_ARGS__)

Definition at line 215 of file Log.h.

◆ yTraceThreadThrottle

#define yTraceThreadThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).trace(__VA_ARGS__)

Definition at line 217 of file Log.h.

◆ yTraceThrottle

#define yTraceThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).trace(__VA_ARGS__)

Definition at line 216 of file Log.h.

◆ yWarning

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

Definition at line 271 of file Log.h.

◆ yWarningExternalTime

#define yWarningExternalTime (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime).warning(__VA_ARGS__)

Definition at line 276 of file Log.h.

◆ yWarningExternalTimeOnce

#define yWarningExternalTimeOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_ONCE_CALLBACK).warning(__VA_ARGS__)

Definition at line 277 of file Log.h.

◆ yWarningExternalTimeThreadOnce

#define yWarningExternalTimeThreadOnce (   externaltime,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADONCE_CALLBACK).warning(__VA_ARGS__)

Definition at line 278 of file Log.h.

◆ yWarningExternalTimeThreadThrottle

#define yWarningExternalTimeThreadThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THREADTHROTTLE_CALLBACK(period)).warning(__VA_ARGS__)

Definition at line 280 of file Log.h.

◆ yWarningExternalTimeThrottle

#define yWarningExternalTimeThrottle (   externaltime,
  period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, externaltime, YARP_THROTTLE_CALLBACK(period)).warning(__VA_ARGS__)

Definition at line 279 of file Log.h.

◆ yWarningOnce

#define yWarningOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_ONCE_CALLBACK).warning(__VA_ARGS__)

Definition at line 272 of file Log.h.

◆ yWarningThreadOnce

#define yWarningThreadOnce (   ...)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADONCE_CALLBACK).warning(__VA_ARGS__)

Definition at line 273 of file Log.h.

◆ yWarningThreadThrottle

#define yWarningThreadThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THREADTHROTTLE_CALLBACK(period)).warning(__VA_ARGS__)

Definition at line 275 of file Log.h.

◆ yWarningThrottle

#define yWarningThrottle (   period,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, YARP_THROTTLE_CALLBACK(period)).warning(__VA_ARGS__)

Definition at line 274 of file Log.h.

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.

yarp::os::Time::now
double now()
Return the current time in seconds, relative to an arbitrary starting point.
Definition: Time.cpp:124
yarp::os::SystemClock::nowSystem
static double nowSystem()
Definition: SystemClock.cpp:37