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

Method log_message

cpp_package/src/ml_model.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void MLModel::log_message (int log_level, const char *format, ...)
96{
97 char buffer[1024];
98 va_list ap;
99 va_start (ap, format);
100 vsnprintf (buffer, 1024, format, ap);
101 va_end (ap);
102
103 int res = log_message_ml_module (log_level, buffer);
104 if (res != (int)BrainFlowExitCodes::STATUS_OK)
105 {
106 throw BrainFlowException ("failed to write log message", res);
107 }
108}
109
110void MLModel::enable_ml_logger ()
111{

Callers

nothing calls this directly

Calls 2

log_message_ml_moduleFunction · 0.85
BrainFlowExceptionClass · 0.85

Tested by

no test coverage detected