QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
logging.cpp
Go to the documentation of this file.
1
#include <
QGCLoggingCategory.h
>
2
3
#include "
libevents_includes.h
"
4
5
QGC_LOGGING_CATEGORY
(EventsLog,
"API.Events"
)
6
7
void
qgc_events_parser_debug_printf
(const
char
*fmt, ...) {
8
char
msg[256];
9
va_list argptr;
10
va_start(argptr, fmt);
11
vsnprintf(msg,
sizeof
(msg), fmt, argptr);
12
va_end(argptr);
13
msg[
sizeof
(msg)-1] =
'\0'
;
14
int
len = strlen(msg);
15
if
(len > 0) msg[len-1] =
'\0'
;
// remove newline
16
qCDebug(EventsLog) << msg;
17
}
QGCLoggingCategory.h
QGC_LOGGING_CATEGORY
#define QGC_LOGGING_CATEGORY(name, categoryStr)
Definition
QGCLoggingCategory.h:14
libevents_includes.h
qgc_events_parser_debug_printf
void qgc_events_parser_debug_printf(const char *fmt,...)
Definition
logging.cpp:7
src
MAVLink
LibEvents
logging.cpp
Generated by
1.9.8