{"id":16397536,"url":"https://github.com/coord-e/arduino-logger","last_synced_at":"2026-05-12T12:38:35.569Z","repository":{"id":115890839,"uuid":"99002864","full_name":"coord-e/arduino-logger","owner":"coord-e","description":"Simple logging library for Arduino","archived":false,"fork":false,"pushed_at":"2017-08-01T13:36:55.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-14T12:03:29.652Z","etag":null,"topics":["arduino","arduino-library","logger","logging","logging-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coord-e.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-01T13:13:02.000Z","updated_at":"2017-08-01T13:14:46.000Z","dependencies_parsed_at":"2023-05-16T23:45:33.120Z","dependency_job_id":null,"html_url":"https://github.com/coord-e/arduino-logger","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/coord-e/arduino-logger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coord-e%2Farduino-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coord-e%2Farduino-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coord-e%2Farduino-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coord-e%2Farduino-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coord-e","download_url":"https://codeload.github.com/coord-e/arduino-logger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coord-e%2Farduino-logger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32940101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","arduino-library","logger","logging","logging-library"],"created_at":"2024-10-11T05:10:21.026Z","updated_at":"2026-05-12T12:38:35.533Z","avatar_url":"https://github.com/coord-e.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Logger for Arduino\n\nSimple logging library for arduino\n\n- [Features](#features)\n- [Get started](#get-started)\n    - [Installation](#installation)\n    - [Sketch](#sketch)\n    - [Output](#output)\n- [Using alternative serial port](#using-alternative-serial-port)\n- [License](#license)\n\n# Features\n- Stream-like syntax\n- Logging with line number and file name\n- Filter by importance\n\nLogging in Arduino is sometimes written redundantly.\n\n```cpp\nSerial.print(\"In line \");\nSerial.print(__LINE__);\nSerial.print(\", Value is: \");\nSerial.println(val);\n// Output: In line 2, Value is: ??\n```\n\nWe can write logging process briefly using this library.\n\n```cpp\nLOGGER_LOG(logger::INFO) \u003c\u003c \"Value is: \" \u003c\u003c val \u003c\u003c '\\n';\n// Output: [INFO] sketch.ino:2: Value is: ??\n```\n\n\n# Get started\n\n### Installation\n\n1. Download [arduino-logger.zip](https://github.com/coord-e/arduino-logger/archive/master.zip).\n2. Import downloaded zip using Arduino IDE's \"Add .ZIP library...\"\n3. You can find arduno-logger is shown as \"Logger\" in \"Examples\" or \"Include Library\" in Arduino IDE.\n\n### Sketch\n\n```cpp\n#include \u003clogger.hpp\u003e\n\nvoid setup() {\n  Serial.begin(9600);\n}\n\n// Only logs which has same as or higher importance than the value in logger::filter will be printed.\n\nint count = 0;\n\nvoid loop() {\n  logger::filter = logger::FATAL; // only FATAL will be printed\n\n  LOGGER_LOG(logger::FATAL) \u003c\u003c \"Fatal error!\\n\";\n  LOGGER_LOG(logger::ERROR) \u003c\u003c \"Error!\\n\";\n  LOGGER_LOG(logger::WARN) \u003c\u003c \"Warning!\\n\";\n  LOGGER_LOG(logger::INFO) \u003c\u003c \"Information!\\n\";\n\n  logger::filter = logger::INFO; // every logs will be printed\n\n  LOGGER_LOG(logger::INFO) \u003c\u003c \"You can put almost every kinds of object into the log\\n\";\n  LOGGER_LOG(logger::INFO) \u003c\u003c \"e.g. int: \" \u003c\u003c count \u003c\u003c \" or float: \" \u003c\u003c 3.14 \u003c\u003c '\\n';\n  delay(1000);\n\n  count++;\n}\n```\n\n### Output\n\n```\n[FATAL]  logging.ino:13: Fatal error!\n[INFO]  logging.ino:20: You can put almost every kinds of object into the log\n[INFO]  logging.ino:21: e.g. int: 2 or float: 3.14\n```\n\n# Using alternative serial port\n\nYou can use alternative serial ports on Arduino Leonardo, Mega, Due, etc...\n\n```cpp\n// Use Serial2 as a output of logs\n#define LOGGER_SERIAL Serial2\n#include \u003clogger.hpp\u003e\n\n...\n```\n\n# License\nThis library is distributed under MIT license.\nSee `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoord-e%2Farduino-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoord-e%2Farduino-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoord-e%2Farduino-logger/lists"}