Skip to content
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

Conditional logging? #6

Open
brekk opened this issue Feb 16, 2017 · 1 comment
Open

Conditional logging? #6

brekk opened this issue Feb 16, 2017 · 1 comment

Comments

@brekk
Copy link

brekk commented Feb 16, 2017

Hi there!

Awesome work, this is a super useful library. I was wondering how you'd feel about making it so this library only generates logs when prompted by a config? Using it programmatically is hard right now b/c it dumps info into process.write, which makes writing a CLI tool that uses this tool internally extra noisy.

I can probably find time to contribute if you think this is a decent idea.

Thanks for your time,
Brekk

@abrjagad
Copy link
Owner

process.write notifies the user that the program is executing (kind of progress bar).
"\r" rewrites the console. I doubt, it floods the user's console. (you may correct me).
Presently, "--verbose" dumps the log into console. it might be a good idea to dump them into a file.

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

No branches or pull requests

2 participants