Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Better logging #464

Open
catalinux17 opened this issue Nov 3, 2022 · 1 comment
Open

Better logging #464

catalinux17 opened this issue Nov 3, 2022 · 1 comment
Labels

Comments

@catalinux17
Copy link

I want to use zap to log exactly what users see.

? Your SSH key is expired. Do you want to update it? Yes
? Do you want to generate a SSH key? Yes
? What format do you want the SSH key to be?  [Use arrows to move, type to filter]
> ED25519 - Preferred due to its security
  RSA - More compatible with older systems

Right now, I only log the question prompt and the answer, but not the cute interface with ? and >.

Any ideas? Thanks.

@mislav
Copy link
Collaborator

mislav commented Nov 24, 2022

Hi, what is zap, and why do you need to log the "cute interface"?

Right now, Survey has no internal logger of its own. However, you can edit your app to add logging around invocations of survey.Ask() and survey.AskOne() if you want to log the fact that the user was presented with some prompts.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants