1 unstable release
0.1.0 | Mar 16, 2023 |
---|
#1535 in Hardware support
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–10MB
~99K SLoC