question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Better logLevel option allowing logging streams and more

See original GitHub issue

Firstly just wanted to say the project is awesome! Mixed with husky we now have some really clean hook configuration without the boilerplate we once had. 😃

Now for my question. With {"verbose": true} set I am still unable to see eslint warnings . This can be super useful for non-blocking hints to developers. I would’ve expected to see a pretty, ahem, verbose log from all my processes when using this flag so surprised that it is missing!

I have a few proposals:

  1. Make verbose: true stream all output.
  2. Add loglevel with "error" (current), "verbose" (current verbose). "all" (all log streams)

Something to note might be that perhaps there is some ambiguity around “verbose logging of what lint-staged is doing” and “verbose logging of task output”.

I would be happy to work on this myself and contribute to the project! Just need a little discussion and direction in the codebase. 😃

Update

Breaking a solution into two parts:

  • With verbose: true we show all output at the end of a step. This unblocks the use case of just wanting to see warnings if there was no error.
  • We stream output of tasks as they are running. This unblocks the use case of wanting to see progress in longer running tasks (eg. jest). This will require more work since listr seems to take over stdout so we need to write (hopefully) a custom renderer which will allow streaming of the running task stdout.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisuicommented, May 8, 2017

Sweet. Got this scoped up for my next sprint so should pick up and have a pull request Wednesday!

0reactions
kentcdoddscommented, May 11, 2017

Might see what concurrently does…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setting Up Application Logging - Amazon Kinesis Data Analytics
Kinesis Data Analytics creates a log stream in the new log group with the following name. You set the application monitoring metrics level...
Read more >
Logging in .NET Core and ASP.NET Core | Microsoft Learn
The Logging property can have LogLevel and log provider properties. The LogLevel specifies the minimum level to log for selected categories. In ...
Read more >
Python Logging Guide - Best Practices and Hands-on Examples
Logging levels can have names. When names are available, logging levels appear by their names in log entries. Every pre-defined logging level ......
Read more >
pino/api.md at master · pinojs/pino - GitHub
The exported pino function takes two optional arguments, options and destination ... The keys of the object correspond to the namespace of the...
Read more >
logging — Logging facility for Python — Python 3.11.1 ...
Source code: Lib/logging/__init__.py Important: This page contains the API reference information. For tutorial information and discussion of more advanced ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found