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

Implement new logger in CLI #1208

Closed
phated opened this issue Aug 19, 2015 · 14 comments
Closed

Implement new logger in CLI #1208

phated opened this issue Aug 19, 2015 · 14 comments

Comments

@phated
Copy link
Member

phated commented Aug 19, 2015

New logger available at https://github.com/gulpjs/gulplog

A bunch of issues opened at https://github.com/gulpjs/gulplog/issues

@kahlil
Copy link

kahlil commented Aug 27, 2015

@phated anybody on this yet? I'd be happy to help this along otherwise.

@phated
Copy link
Member Author

phated commented Aug 28, 2015

not any more than the initial commit on gulplog. The best place to start would be to bring gulplog into the CLI (4.0 branch) and wire up the event listeners. Once everything gets hooked up for that, we can implement it as branching logic in gulp-util

@phated
Copy link
Member Author

phated commented Sep 3, 2015

@kahlil are you tackling this?

@kahlil
Copy link

kahlil commented Sep 4, 2015

Hey there! Sorry for the silence. I will see if I can fit it in next week. Will let you know if it worked or not :)

Von meinem iPhone gesendet

Am 03.09.2015 um 20:20 schrieb Blaine Bublitz notifications@github.com:

@kahlil are you tackling this?


Reply to this email directly or view it on GitHub.

@kahlil
Copy link

kahlil commented Sep 8, 2015

@phated

OK, just so I understand correctly, you need me to:

  • check out gulp-cli 4.0 branch
  • add gulplog as a dependency there
  • use gulplog in gulp-cli everywhere instead of gutil.log
  • remove gulp-util completely
  • let you know that its done so it can be "implemented as branching logic" (I have no idea what that means, can you explain that please?)

@yocontra
Copy link
Member

yocontra commented Sep 8, 2015

@kahlil Also completely removing gulp-util which should be unused after getting of gutil.log

@kahlil
Copy link

kahlil commented Sep 9, 2015

@contra got it. will get on it as soon as i can.

@kahlil
Copy link

kahlil commented Sep 9, 2015

@contra + @phated since your instructions are pretty minimal I'd like to make sure I am doing it right so here is how I would do it:

Is that approx. what you have in mind? Not sure if I am completely off course or not

@phated
Copy link
Member Author

phated commented Sep 9, 2015

@kahlil yeah, this stuff is looking really good. Also, this weekend I pulled the gulp-util logging out into a module (fancy-log) that can be used instead of embedding the logic.

@phated
Copy link
Member Author

phated commented Sep 9, 2015

One other thing to mention is that the CLI needs a way to suppress different levels so a log level parameter or config object should be passed into toConsole I think.

@kahlil
Copy link

kahlil commented Sep 10, 2015

@phated sounds good! How do you want users to specify the log levels on the cli? Via a number: --log-level 2 or rather via the keywords error, warn, info, debug: --log-level warn? Or in a different way?

@phated
Copy link
Member Author

phated commented Sep 10, 2015

@kahlil I was thinking about copying npm for log levels, e.g. -vvv for the most verbose. The newest version of yargs has support for counting a flag (not sure if old versions do). Thoughts? /cc @contra

@phated
Copy link
Member Author

phated commented Sep 15, 2015

Many thanks to @kahlil! As of gulpjs/gulp-cli#32, gulp-cli 4.0 branch no longer has a dependency on gulp-util and has a real logger!

@phated phated closed this as completed Sep 15, 2015
@kahlil
Copy link

kahlil commented Sep 15, 2015

\o/

@callumacrae callumacrae mentioned this issue Oct 9, 2015
5 tasks
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

3 participants