#serial-port #write #logger #output #folder #screen #file

app serial_logger

A logger for serial port written in rust. It writes a logfile with the current date and prints the serial output.

1 unstable release

0.1.0 Mar 16, 2023

#1210 in Hardware support

Download history 13/week @ 2024-02-25 1/week @ 2024-03-03 57/week @ 2024-03-10 2/week @ 2024-03-17 14/week @ 2024-03-31

73 downloads per month

MIT license

8KB
118 lines

Serial Logger

This project logs a serial port and writes the content in a file on the system.

The first parameter is the serial port and the seconde the baudrate.

Example

./serial_logger /dev/ttyUSB0 115200

This creates a folder in the home directory with "log_files/YEAR/YEAR-MONTH/YEAR-MONTH-DAY/HHMM.log".

Additionally, the logger writes the output on the screen, where it is called. So it loggs and shows the serial output of e.g. a device.

Per default, the logger writes the timestamp in front of the output. You can prevent the logger from this with an extra option:

./serial_logger /dev/ttyUSB0 115200 false

Dependencies

~3–12MB
~111K SLoC