| Crates.io | serial_logger |
| lib.rs | serial_logger |
| version | 0.1.0 |
| created_at | 2023-03-16 12:07:09.810882+00 |
| updated_at | 2023-03-16 12:07:09.810882+00 |
| description | A logger for serial port written in rust. It writes a logfile with the current date and prints the serial output. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 811459 |
| size | 20,324 |
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.
./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