Skip to content

Commit c337376

Browse files
committed
fixed typos
1 parent f736424 commit c337376

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

references/Developer Guide to Logging.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ To use logging in your code, include the following:
6464
##### (note: all of these methods have variants without the trailing 'ln' e.g. Log.info(). The difference being the ln variant adds a newline character (\n))
6565

6666
```cpp
67-
Log.infonl("This is an info message.");
68-
Log.warningnl("Warning: Device is overheating!");
69-
Log.errornl("Error: Sensor not found.");
70-
Log.fatalnl("Fatal: System crash imminent!");
71-
Log.infonl("Sensor value: " + String(sensorValue));
72-
73-
Log.infonl("Count: %d", count);
74-
Log.infonl("Status: %s, Value: %d", status.c_str(), value);
75-
Log.warningnl("Temperature: %.2f°C", temperature);
76-
Log.errornl("Error %d: %s", errorCode, errorMessage.c_str());
77-
Log.tracenl("Loop iteration: %d", loopCount);
78-
79-
Log.infonl("Device: " + String(deviceName) + ", ID: %d", deviceId);
80-
Log.warningnl("Battery level: %d%%, Status: %s", batteryLevel, status.c_str());
67+
Log.infoln("This is an info message.");
68+
Log.warningln("Warning: Device is overheating!");
69+
Log.errorln("Error: Sensor not found.");
70+
Log.fatalln("Fatal: System crash imminent!");
71+
Log.infoln("Sensor value: " + String(sensorValue));
72+
73+
Log.infoln("Count: %d", count);
74+
Log.infoln("Status: %s, Value: %d", status.c_str(), value);
75+
Log.warningln("Temperature: %.2f°C", temperature);
76+
Log.errorln("Error %d: %s", errorCode, errorMessage.c_str());
77+
Log.traceln("Loop iteration: %d", loopCount);
78+
79+
Log.infonln("Device: " + String(deviceName) + ", ID: %d", deviceId);
80+
Log.warninln("Battery level: %d%%, Status: %s", batteryLevel, status.c_str());
8181
```
8282

8383
Do NOT use Arduino Strings directly for %s, but to use .c_str(), like in Serial.printf()

0 commit comments

Comments
 (0)