24int main(
int argc,
char** argv)
29 std::cout <<
"Loggers: " << std::endl;
31 std::cout <<
" - name: " <<
name <<
" " << log << std::endl;
36 O2_LOG_DEBUG(test_Signpost,
"%s %d",
"test_Signpost", 1);
42 O2_SIGNPOST_END(test_Signpost,
id,
"Test category",
"End of the first interval");
43 O2_SIGNPOST_END(test_Signpost, id2,
"Test category",
"A sepaarate interval");
45 O2_SIGNPOST_START(test_Signpost, id3,
"Test category",
"A signpost interval from a pointer");
46 O2_SIGNPOST_END(test_Signpost, id3,
"Test category",
"A signpost interval from a pointer");
50 O2_SIGNPOST_START(test_Signpost, id4,
"Test category",
"A signpost with an engineering type formatter %{size-in-bytes}d", 1);
51 O2_SIGNPOST_END(test_Signpost, id4,
"Test category",
"A signpost interval from a pointer");
53 O2_SIGNPOST_START(test_SignpostDynamic,
id,
"Test category",
"This is dynamic signpost which you will not see, because they are off by default");
54 O2_SIGNPOST_END(test_SignpostDynamic,
id,
"Test category",
"This is dynamic signpost which you will not see, because they are off by default");
58 O2_SIGNPOST_START(test_SignpostDynamic,
id,
"Test category",
"This is dynamic signpost which you will see, because we turned them on");
59 O2_SIGNPOST_END(test_SignpostDynamic,
id,
"Test category",
"This is dynamic signpost which you will see, because we turned them on");
#define O2_LOG_DEBUG(log,...)
#define O2_SIGNPOST_EVENT_EMIT_ERROR(log, id, name, format,...)
o2_log_handle_t * o2_walk_logs(bool(*callback)(char const *name, void *log, void *context), void *context=nullptr)
#define O2_DECLARE_DYNAMIC_LOG(name)
#define O2_SIGNPOST_ID_FROM_POINTER(name, log, pointer)
#define O2_SIGNPOST_END(log, id, name, format,...)
#define O2_DECLARE_DYNAMIC_STACKTRACE_LOG(name)
For the moment we do not support logs with a stacktrace.
#define O2_SIGNPOST_ID_GENERATE(name, log)
#define O2_DECLARE_LOG(name, category)
#define O2_LOG_ENABLE(log)
#define O2_SIGNPOST_EVENT_EMIT(log, id, name, format,...)
#define O2_SIGNPOST_START(log, id, name, format,...)