serialog

1.0.3 • Public • Published

serialog

A small utility to write a serial device's output to a log file with timestamps.

Installation

npm install --global serialog

Usage

serialog \
  --dev-path=/dev/ttyUSB0 \        # Path to input device
  --dev-baud=115200 \              # Baudrate
  --log-path="~/my_device.log" \   # Path to output file
  --log-append                     # Append to file, instead of overwriting

Usage with PM2

Use serialog in combination with PM2 to keep monitoring while detaching your SSH session.

pm2 start serialog -- --dev-path=/dev/ttyUSB0 --dev-baud=115200 --log-path=/home/pi/my_device.log --log-append

Readme

Keywords

none

Package Sidebar

Install

npm i serialog

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

3.05 kB

Total Files

3

Last publish

Collaborators

  • weejewel