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

Support less fancy terminals #251

Open
cjhowedev opened this issue Sep 30, 2017 · 6 comments
Open

Support less fancy terminals #251

cjhowedev opened this issue Sep 30, 2017 · 6 comments

Comments

@cjhowedev
Copy link

cjhowedev commented Sep 30, 2017

The new bankai has pretty fancy terminal logging! But not everyone runs it in a terminal that supports all these fancy features. For example, term-mode in Emacs really dislikes the fact that bankai takes over the terminal. Also, if you're using bankai on the server side, it can get in the way of your server logging. While I think we should keep these features, I think there should be a configuration option for basic logging (like the old bankai logging) that works on simpler terminals.

We could by default make the decision to use basic or fancy logging based on the TERM environment variable.

@yoshuawuyts
Copy link
Member

yoshuawuyts commented Oct 2, 2017 via email

@yoshuawuyts
Copy link
Member

For now if it doesn't work, you can always pass --silent; it'll only warn on error.

@Flet
Copy link
Collaborator

Flet commented Oct 30, 2017

I believe its --quiet :)

bankai --help
  $ bankai <command> [entry] [options]

  Commands:

    build       compile all files to dist/
    inspect     inspect the bundle dependencies
    start       start a development server

  Options:

    -d, --debug       output lots of logs
    -h, --help        print usage
    -q, --quiet       don't output any logs
    -v, --version     print version

@Flet
Copy link
Collaborator

Flet commented Nov 16, 2017

Well, I have something kinda working that might help this... I hacked together a version of ui.js that will log to stdout instead.

simple-logs

This allows bankai to be used programmatically without it blowing away existing sever logs :) It would be nice to detect tty but also enable this under a flag... but I'm not certain.

@yoshuawuyts any other thoughts on this?

@Flet
Copy link
Collaborator

Flet commented Nov 16, 2017

pushed WIP code to branch if you're interested in seeing it (not merge ready hehe) https://github.com/choojs/bankai/compare/simple-logs

@yoshuawuyts
Copy link
Member

@Flet this is cool!

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

3 participants