YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Log.h File Reference
#include <yarp/os/api.h>
#include <cstdint>
#include <iosfwd>
#include <mutex>
#include <memory>
#include <string_view>
+ Include dependency graph for Log.h:

Go to the source code of this file.

Classes

class  yarp::os::Log
 

Namespaces

namespace  yarp
 The main, catch-all namespace for YARP.
 
namespace  yarp::os
 An interface to the operating system, including Port based communication.
 

Macros

#define __YFUNCTION__   "(unknown function)"
 
#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 yITrace(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).trace(__VA_ARGS__)
 
#define yITraceOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_ONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yITraceThreadOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yITraceThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yITraceThreadThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADTHROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yITraceExternalTime(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime).trace(__VA_ARGS__)
 
#define yITraceExternalTimeOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_ONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yITraceExternalTimeThreadOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THREADONCE_CALLBACK).trace(__VA_ARGS__)
 
#define yITraceExternalTimeThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THROTTLE_CALLBACK(period)).trace(__VA_ARGS__)
 
#define yITraceExternalTimeThreadThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, 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 yIDebug(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).debug(__VA_ARGS__)
 
#define yIDebugOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_ONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yIDebugThreadOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yIDebugThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yIDebugThreadThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADTHROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yIDebugExternalTime(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime).debug(__VA_ARGS__)
 
#define yIDebugExternalTimeOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_ONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yIDebugExternalTimeThreadOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THREADONCE_CALLBACK).debug(__VA_ARGS__)
 
#define yIDebugExternalTimeThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THROTTLE_CALLBACK(period)).debug(__VA_ARGS__)
 
#define yIDebugExternalTimeThreadThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, 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 yIInfo(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).info(__VA_ARGS__)
 
#define yIInfoOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_ONCE_CALLBACK).info(__VA_ARGS__)
 
#define yIInfoThreadOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADONCE_CALLBACK).info(__VA_ARGS__)
 
#define yIInfoThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yIInfoThreadThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADTHROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yIInfoExternalTime(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime).info(__VA_ARGS__)
 
#define yIInfoExternalTimeOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_ONCE_CALLBACK).info(__VA_ARGS__)
 
#define yIInfoExternalTimeThreadOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THREADONCE_CALLBACK).info(__VA_ARGS__)
 
#define yIInfoExternalTimeThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THROTTLE_CALLBACK(period)).info(__VA_ARGS__)
 
#define yIInfoExternalTimeThreadThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, 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 yIWarning(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).warning(__VA_ARGS__)
 
#define yIWarningOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_ONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yIWarningThreadOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yIWarningThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yIWarningThreadThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADTHROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yIWarningExternalTime(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime).warning(__VA_ARGS__)
 
#define yIWarningExternalTimeOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_ONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yIWarningExternalTimeThreadOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THREADONCE_CALLBACK).warning(__VA_ARGS__)
 
#define yIWarningExternalTimeThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THROTTLE_CALLBACK(period)).warning(__VA_ARGS__)
 
#define yIWarningExternalTimeThreadThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, 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 yIError(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).error(__VA_ARGS__)
 
#define yIErrorOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_ONCE_CALLBACK).error(__VA_ARGS__)
 
#define yIErrorThreadOnce(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADONCE_CALLBACK).error(__VA_ARGS__)
 
#define yIErrorThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yIErrorThreadThrottle(id, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, YARP_THREADTHROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yIErrorExternalTime(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime).error(__VA_ARGS__)
 
#define yIErrorExternalTimeOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_ONCE_CALLBACK).error(__VA_ARGS__)
 
#define yIErrorExternalTimeThreadOnce(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THREADONCE_CALLBACK).error(__VA_ARGS__)
 
#define yIErrorExternalTimeThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime, YARP_THROTTLE_CALLBACK(period)).error(__VA_ARGS__)
 
#define yIErrorExternalTimeThreadThrottle(id, externaltime, period, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, 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 yIFatal(id, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).fatal(__VA_ARGS__)
 
#define yIFatalExternalTime(id, externaltime, ...)   yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id, externaltime).fatal(__VA_ARGS__)
 
#define yAssert(x)
 
#define yAssertExternalTime(externaltime, x)
 
#define yIAssert(id, x)
 
#define yIAssertExternalTime(id, 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).
 

Macro Definition Documentation

◆ __YFUNCTION__

#define __YFUNCTION__   "(unknown function)"

Definition at line 24 of file Log.h.

◆ YARP_ATTRIBUTE_FORMAT

#define YARP_ATTRIBUTE_FORMAT (   style,
  fmt,
  args 
)

Definition at line 34 of file Log.h.

◆ YARP_FIXME_NOTIMPLEMENTED

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

Definition at line 411 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 189 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 195 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; \
}
static double nowSystem()

Definition at line 217 of file Log.h.

◆ YARP_THROTTLE_CALLBACK

#define YARP_THROTTLE_CALLBACK (   period)
Value:
[](){ \
static double last = -period; \
std::mutex* mutex_throttle_callback = yarp::os::Log::getLogMutex(); \
std::lock_guard<std::mutex> lock(*mutex_throttle_callback);\
if (now >= last + period) { \
last = now; \
return true; \
} \
return false; \
}
static std::mutex * getLogMutex()
Definition Log.h:101

Definition at line 204 of file Log.h.

◆ yAssert

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

Definition at line 388 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 392 of file Log.h.

◆ yDebug

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

Definition at line 275 of file Log.h.

◆ yDebugExternalTime

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

Definition at line 280 of file Log.h.

◆ yDebugExternalTimeOnce

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

Definition at line 281 of file Log.h.

◆ yDebugExternalTimeThreadOnce

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

Definition at line 282 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 284 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 283 of file Log.h.

◆ yDebugOnce

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

Definition at line 276 of file Log.h.

◆ yDebugThreadOnce

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

Definition at line 277 of file Log.h.

◆ yDebugThreadThrottle

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

Definition at line 279 of file Log.h.

◆ yDebugThrottle

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

Definition at line 278 of file Log.h.

◆ yError

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

Definition at line 361 of file Log.h.

◆ yErrorExternalTime

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

Definition at line 366 of file Log.h.

◆ yErrorExternalTimeOnce

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

Definition at line 367 of file Log.h.

◆ yErrorExternalTimeThreadOnce

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

Definition at line 368 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 370 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 369 of file Log.h.

◆ yErrorOnce

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

Definition at line 362 of file Log.h.

◆ yErrorThreadOnce

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

Definition at line 363 of file Log.h.

◆ yErrorThreadThrottle

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

Definition at line 365 of file Log.h.

◆ yErrorThrottle

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

Definition at line 364 of file Log.h.

◆ yFatal

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

Definition at line 382 of file Log.h.

◆ yFatalExternalTime

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

Definition at line 383 of file Log.h.

◆ yIAssert

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

Definition at line 396 of file Log.h.

◆ yIAssertExternalTime

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

Definition at line 400 of file Log.h.

◆ yIDebug

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

Definition at line 285 of file Log.h.

◆ yIDebugExternalTime

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

Definition at line 290 of file Log.h.

◆ yIDebugExternalTimeOnce

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

Definition at line 291 of file Log.h.

◆ yIDebugExternalTimeThreadOnce

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

Definition at line 292 of file Log.h.

◆ yIDebugExternalTimeThreadThrottle

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

Definition at line 294 of file Log.h.

◆ yIDebugExternalTimeThrottle

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

Definition at line 293 of file Log.h.

◆ yIDebugOnce

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

Definition at line 286 of file Log.h.

◆ yIDebugThreadOnce

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

Definition at line 287 of file Log.h.

◆ yIDebugThreadThrottle

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

Definition at line 289 of file Log.h.

◆ yIDebugThrottle

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

Definition at line 288 of file Log.h.

◆ yIError

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

Definition at line 371 of file Log.h.

◆ yIErrorExternalTime

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

Definition at line 376 of file Log.h.

◆ yIErrorExternalTimeOnce

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

Definition at line 377 of file Log.h.

◆ yIErrorExternalTimeThreadOnce

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

Definition at line 378 of file Log.h.

◆ yIErrorExternalTimeThreadThrottle

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

Definition at line 380 of file Log.h.

◆ yIErrorExternalTimeThrottle

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

Definition at line 379 of file Log.h.

◆ yIErrorOnce

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

Definition at line 372 of file Log.h.

◆ yIErrorThreadOnce

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

Definition at line 373 of file Log.h.

◆ yIErrorThreadThrottle

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

Definition at line 375 of file Log.h.

◆ yIErrorThrottle

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

Definition at line 374 of file Log.h.

◆ yIFatal

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

Definition at line 384 of file Log.h.

◆ yIFatalExternalTime

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

Definition at line 385 of file Log.h.

◆ yIInfo

#define yIInfo (   id,
  ... 
)    yarp::os::Log(__FILE__, __LINE__, __YFUNCTION__, id).info(__VA_ARGS__)

Definition at line 329 of file Log.h.

◆ yIInfoExternalTime

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

Definition at line 334 of file Log.h.

◆ yIInfoExternalTimeOnce

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

Definition at line 335 of file Log.h.

◆ yIInfoExternalTimeThreadOnce

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

Definition at line 336 of file Log.h.

◆ yIInfoExternalTimeThreadThrottle

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

Definition at line 338 of file Log.h.

◆ yIInfoExternalTimeThrottle

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

Definition at line 337 of file Log.h.

◆ yIInfoOnce

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

Definition at line 330 of file Log.h.

◆ yIInfoThreadOnce

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

Definition at line 331 of file Log.h.

◆ yIInfoThreadThrottle

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

Definition at line 333 of file Log.h.

◆ yIInfoThrottle

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

Definition at line 332 of file Log.h.

◆ yInfo

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

Definition at line 319 of file Log.h.

◆ yInfoExternalTime

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

Definition at line 324 of file Log.h.

◆ yInfoExternalTimeOnce

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

Definition at line 325 of file Log.h.

◆ yInfoExternalTimeThreadOnce

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

Definition at line 326 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 328 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 327 of file Log.h.

◆ yInfoOnce

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

Definition at line 320 of file Log.h.

◆ yInfoThreadOnce

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

Definition at line 321 of file Log.h.

◆ yInfoThreadThrottle

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

Definition at line 323 of file Log.h.

◆ yInfoThrottle

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

Definition at line 322 of file Log.h.

◆ yITrace

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

Definition at line 241 of file Log.h.

◆ yITraceExternalTime

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

Definition at line 246 of file Log.h.

◆ yITraceExternalTimeOnce

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

Definition at line 247 of file Log.h.

◆ yITraceExternalTimeThreadOnce

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

Definition at line 248 of file Log.h.

◆ yITraceExternalTimeThreadThrottle

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

Definition at line 250 of file Log.h.

◆ yITraceExternalTimeThrottle

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

Definition at line 249 of file Log.h.

◆ yITraceOnce

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

Definition at line 242 of file Log.h.

◆ yITraceThreadOnce

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

Definition at line 243 of file Log.h.

◆ yITraceThreadThrottle

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

Definition at line 245 of file Log.h.

◆ yITraceThrottle

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

Definition at line 244 of file Log.h.

◆ yIWarning

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

Definition at line 350 of file Log.h.

◆ yIWarningExternalTime

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

Definition at line 355 of file Log.h.

◆ yIWarningExternalTimeOnce

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

Definition at line 356 of file Log.h.

◆ yIWarningExternalTimeThreadOnce

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

Definition at line 357 of file Log.h.

◆ yIWarningExternalTimeThreadThrottle

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

Definition at line 359 of file Log.h.

◆ yIWarningExternalTimeThrottle

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

Definition at line 358 of file Log.h.

◆ yIWarningOnce

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

Definition at line 351 of file Log.h.

◆ yIWarningThreadOnce

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

Definition at line 352 of file Log.h.

◆ yIWarningThreadThrottle

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

Definition at line 354 of file Log.h.

◆ yIWarningThrottle

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

Definition at line 353 of file Log.h.

◆ yTrace

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

Definition at line 231 of file Log.h.

◆ yTraceExternalTime

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

Definition at line 236 of file Log.h.

◆ yTraceExternalTimeOnce

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

Definition at line 237 of file Log.h.

◆ yTraceExternalTimeThreadOnce

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

Definition at line 238 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 240 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 239 of file Log.h.

◆ yTraceOnce

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

Definition at line 232 of file Log.h.

◆ yTraceThreadOnce

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

Definition at line 233 of file Log.h.

◆ yTraceThreadThrottle

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

Definition at line 235 of file Log.h.

◆ yTraceThrottle

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

Definition at line 234 of file Log.h.

◆ yWarning

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

Definition at line 340 of file Log.h.

◆ yWarningExternalTime

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

Definition at line 345 of file Log.h.

◆ yWarningExternalTimeOnce

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

Definition at line 346 of file Log.h.

◆ yWarningExternalTimeThreadOnce

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

Definition at line 347 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 349 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 348 of file Log.h.

◆ yWarningOnce

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

Definition at line 341 of file Log.h.

◆ yWarningThreadOnce

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

Definition at line 342 of file Log.h.

◆ yWarningThreadThrottle

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

Definition at line 344 of file Log.h.

◆ yWarningThrottle

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

Definition at line 343 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 1119 of file Log.cpp.