MCPcopy Create free account
hub / github.com/HASwitchPlate/openHASP / printLevel

Function printLevel

lib/ArduinoLog/ArduinoLog.h:320–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 void printFormat(Print* logOutput, const char format, va_list* args);
319
320 template <class T> void printLevel(uint8_t tag, int level, T msg, ...)
321 {
322#ifndef DISABLE_LOGGING
323
324 for(int i = 0; i < 3; i++) {
325 if(_logOutput[i] == NULL || level > _level[i]) continue;
326
327 if(_prefix != NULL) {
328 _prefix(tag, level, _logOutput[i]);
329 }
330
331 va_list args;
332 va_start(args, msg);
333 print(_logOutput[i], msg, args);
334
335 if(_suffix != NULL) {
336 _suffix(tag, level, _logOutput[i]);
337 }
338 }
339
340#endif
341 }
342
343#ifndef DISABLE_LOGGING
344 int _level[3];

Callers 8

fatalFunction · 0.85
errorFunction · 0.85
warningFunction · 0.85
noticeFunction · 0.85
traceFunction · 0.85
verboseFunction · 0.85
debugFunction · 0.85
outputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected