5 releases
new 0.2.2 | Jan 1, 2025 |
---|---|
0.2.1 | Dec 30, 2024 |
0.2.0 | Dec 29, 2024 |
0.1.1 | Dec 29, 2024 |
0.1.0 | Dec 29, 2024 |
#3 in #serves
325 downloads per month
6KB
91 lines
defmt-logger-tcp
A defmt logger that serves logs over TCP.
Usage
use defmt::info;
use std::thread;
thread::spawn(defmt_logger_tcp::run);
info!("Hello, world!");
Then you can tail the logs using:
defmt-print -e ./target/debug/my-app tcp
Logs are served via a TCP server listening on localhost:19021
.
lib.rs
:
A defmt logger that serves logs over TCP.
Usage
use defmt::info;
use std::thread;
thread::spawn(defmt_logger_tcp::run);
info!("Hello, world!");
Dependencies
~0.5–1MB
~22K SLoC