MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / logFunc

Function logFunc

extensions/opc/src/opc.cpp:573–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573void logFunc(void *context, UA_LogLevel level, UA_LogCategory category, const char *msg, va_list args) {
574 char buffer[1024];
575 vsnprintf(buffer, 1024, msg, args);
576 auto loggerPtr = reinterpret_cast<core::logging::BaseLogger*>(context);
577 loggerPtr->log_string(MapOPCLogLevel(level), buffer);
578}
579
580} /* namespace opc */
581} /* namespace minifi */

Callers

nothing calls this directly

Calls 2

MapOPCLogLevelFunction · 0.85
log_stringMethod · 0.80

Tested by

no test coverage detected