Arduino Logging System

A guide for our Arduino log system which is available through our Open Source project on Github.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 09/28/2023 at 10:13
Last Updated on 09/28/2023 at 11:19
<p>A flower that represents Arduino with the text "Log System" beneath it.</p>

A guide for our Arduino log system which is available through our Open Source project on Github.

SubscribeDownload Open Source Starter Project

The following guide describes the principles that we use in our Arduino projects which we have made available through our Open Source starter project whose repository is available in the link below.

View Repository

Log processes and objects through 3 types of commands

An image that shows the three emoji's that are used within our logs. These emojis are: ⚈ ⚈ ⚈ :white_check_mark: and :x:.

The functionality behind our logging system has been made available below and can be found in the Logs.h and Logs.cpp file within our Open Source Starter Project.

The functionality can be broken down into three variations: In Progress, Failed, Successful.

We recommend that you place these in your Arduino project in seperate files (i.e. not in the ino file) - to learn how to do this consult the tutorial below.

How to break up Arduino functionality into separate files.

Header File

CPP File

⚈ ⚈ ⚈ In Progress ⚈ ⚈ ⚈

The In Progress log makes use of the ⚈ ⚈ ⚈ emoji and is recommended to be used with clear identifiers when:

  • Functions start to indicate that the function is in progress.
  • Modules, such as managing data in EEPROM, start to indicate that subtasks have begun and are in progress.

✅ Successful

The Success log makes use of the ✅ emoji and is recommended to be used with clear identifiers when:

  • Functions return an successful response to indicate that the function has successfully completed all the expected tasks and has reached the end of the service.
  • Modules, such as managing data in EEPROM, succeed to indicate that subtasks have been executed as expected.

❌ Failed

The Failed log makes use of the ❌ emoji and is recommended to be used with clear identifiers when:

  • Functions return an error in the response to indicate that the function has failed.
  • Modules, such as managing data in EEPROM, fail to indicate that subtasks have failed to be executed as expected.

Looking to learn more about things you can do with Arduino ?

Search our blog to find educational content on Arduino.

Search our Blog

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe