-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding logging to file feature #24
Comments
Original comment by |
Original comment by |
As I see you only log what you read from tty_fd. What about the stuff you write to tty_fd? What if local echo is enabled, or not? Needs more thought. |
this was based on issue npat-efault#24 of npat-efault
The thing is it would be really great if picocom had an option similar to -C (--capturefile) from minicom |
One workaround is to use
|
I currently use linux script command for logging picocom communication, but it has the drawback that my logfile also contains all the settings output an startup and the I'd now merged the above mentioned Btw: minicom don't write tx data to the logfile, but it logs local echo. |
I would consider a PR for logging with the following features:
|
I'll vote for the following behavior:
|
Let me think about it... |
Ok, I see your point! A single --logfile option should be enough:
The only question is: Is it possible that someone might need to log output-to-serial even if local-echo is not enabled? And: Is it possible that someone might not want to log output-to-serial even if local-echo is enabled? For both questions the answer seems to be: It's very unlike. So if the need arises in the future (most likely, it won't), we can then provide extra options to modify the behavior. Agree? |
Agree, keep it simple, for the first. I'll provide a new PR soon. |
as discussed in npat-efault#24
could be closed now, isn't it? |
Original issue reported on code.google.com by
casat...@gmail.com
on 15 Jan 2014 at 8:08Attachments:
The text was updated successfully, but these errors were encountered: