brendan-w / python-OBD

OBD-II serial module for reading engine data
GNU General Public License v2.0
1.03k stars 363 forks source link

How to log console input/output #86

Closed ffries closed 7 years ago

ffries commented 7 years ago

I would like to log all commands input/output, with the same data as on console where the ELM327 is attached.

I tried the command "tail -f /dev/pts/1" without success. Can it be done in Linux using some kind of redirection. I guess not ...

Maybe there should be a message_log and a console_log. The message log is returned by Python-OBD whereas the console log is the pure log sent/received in console. It is always useful to have the complete log in order to debug.

I would like to log console output (without any addition) to a file : > means "sending" \< means "receiving"

Example

AT something is "sending command AT"

How can this be done, please explain and I will code it.

ffries commented 7 years ago

Stupid request.