Files
Scanning the repository...
| FilesblockwarelibDLog | |
|---|---|
| .. | |
| DLog.h | |
| README.md |
README.mdDLog
Simple header library to handle serial / telnet debug logging.
To add a log, simply use
DLOGlike you wouldprintf
DLOG("%d bottles of beer on the wall\n", numBottles);To save ram, you might consider using
PSTRto store strings in flash.
DLOG(PSTR("%d bottles of beer on the wall\n"), numBottles);By default log lines become no-ops in your program. If you'd like them to go somewhere you can define either
SERIALLOGorTELNETLOGbefore#include <DLog.h>at the start of your program.
#define SERIALLOG 1include <DLog.h>
When using
TELNETLOG, the RemoteDebug library is used to make logs available in realtime over the network. You can simply usetelnet hostname.localORnc hostname.local 23ORtelnet 192.168.1.85to connect to the device (of course replace hostname or the IP with your device's hostname or IP).