Skip to content

Pseudo /dev/log for ESP32 that provides remote or local logging

License

Notifications You must be signed in to change notification settings

lllucius/esp32_devlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 (pseudo) /dev/log

A simple little tool that allows you to capture all "console" output and pipe it to a remote syslog daemon, to a local file, and/or a memory buffer.

All you need to do is add it to your components directory, include the header into your main app and set the destination to any combination of the three destinations.

It starts capturing "fairly" early in the boot process and could be made to capture even earlier, but that would require patching the bootloader code.

Example:

#include "devlog.h"

void app_main(void)
{

    ... get wifi going ...

    devlog_set_udp_destination("192.168.2.1", 514);

    printf("This should show up on the local \"console\" and the remote syslog daemon\n");
}

About

Pseudo /dev/log for ESP32 that provides remote or local logging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published