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

Figure out some formal logging policy #94

Closed
lihaoyi opened this issue Jan 1, 2018 · 1 comment
Closed

Figure out some formal logging policy #94

lihaoyi opened this issue Jan 1, 2018 · 1 comment

Comments

@lihaoyi
Copy link
Member

lihaoyi commented Jan 1, 2018

Our logging right now is a bit of a mess, we need to answer:

  • How do we remove the verbosity of things like Running Core.test.upstreamCompileOutput, which hardly ever do any work?

  • What goes to stdout and what goes to stderr?

  • Where does --show fit into this, since a user calling --show is likely to want to capture the result as a clean JSON blob without all the misc log spam?

Ammonite's policy is that "misc" low-priority output (compiling files, blah) goes to stderr, leaving stdout for things that a user explicitly prints, so users can foo.sc > out.txt and be sure `out.txt doesn't contain any random trash.

@lihaoyi
Copy link
Member Author

lihaoyi commented Jan 6, 2018

Fixed by fb68da0 and dd16d55

@lihaoyi lihaoyi closed this as completed Jan 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant