Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
LogUtil Class Reference
Using the LogUtil class. More...
#include <LogUtil.h>
Public Member Functions | |
| LogUtil (Serial &serial, uint32_t baudrate=0) | |
| Construct the LogUtil class and configure. | |
Detailed Description
Using the LogUtil class.
Example:
#include "mbed.h" #include "LogUtil.h" LogUtil logger; int main() { LOG("This is a log\n"); WARN("This is a warning\n"); for(int i=0; i<3; ++i) { LOG("Log message #%d\n", i); } for(int i=0; i<3; ++i) { WARN("Warn message #%d\n", i); } ERROR("This is an error\n"); }
Different ways to log messages having a standard interface
Definition at line 76 of file LogUtil.h.
Constructor & Destructor Documentation
| LogUtil | ( | Serial & | serial, |
| uint32_t | baudrate = 0 |
||
| ) |
Construct the LogUtil class and configure.
Definition at line 26 of file LogUtil.cpp.
Generated on Wed Jul 13 2022 09:34:30 by
1.7.2