| 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]; |