Verbosity Level? #396
-
It seems like there are only two options for verbosity. "Quiet" suppresses all output to the console, which prevents the use of commands which prompt for user input ( "Verbose" solves this problem by printing the command stdout and stderr, but tends to massively clutter the screen by printing the command which is to be run. While this is sometimes nice for debugging, it would be great to have a third level of verbosity which shows the stdout/stderr of the command without showing the command which will run. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In v8.0.0 we've introduced additional option to fine-tune the output. $.verbose = true // to capture everything
$.quiet = true // to completely turn off logging The internal zx logger accepts an event object, that defines the context it belongs to. For example, the mentioned cmd evnt looks like: $.log({
kind: 'cmd',
cmd: this._command,
verbose: self.isVerbose(),
}) So you can easily override the |
Beta Was this translation helpful? Give feedback.
In v8.0.0 we've introduced additional option to fine-tune the output.
The internal zx logger accepts an event object, that defines the context it belongs to. For example, the mentioned cmd evnt looks like:
So you can easily override the
$.log
implementation to pick/omit only the required entries.