MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / log_message

Method log_message

cpp_package/src/board_shim.cpp:76–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void BoardShim::log_message (int log_level, const char *format, ...)
77{
78 char buffer[1024];
79 va_list ap;
80 va_start (ap, format);
81 vsnprintf (buffer, 1024, format, ap);
82 va_end (ap);
83
84 int res = log_message_board_controller (log_level, buffer);
85 if (res != (int)BrainFlowExitCodes::STATUS_OK)
86 {
87 throw BrainFlowException ("failed to write log message", res);
88 }
89}
90
91//////////////////////////////////////////
92/////// data acquisition methods /////////

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected