[PATCH] D44226: [clangd] Add -log-lsp-to-stderr option

Simon Marchi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 7 14:38:29 PST 2018


simark added a comment.

In https://reviews.llvm.org/D44226#1030625, @ilya-biryukov wrote:

> I would vouch for adding a log level instead. It's a very well understood concept that certainly covers this use-case and can be useful in other places.
>  WDYT?


I agree.  How would you prefer the flags to look like?

- --log-level {debug,info,warning,error} (warning being the default if not specified)
- Use -v multiple times to be more verbose: "-v" to show info, "-v -v" to show debug.  Without -v, we show warnings and errors.
- something else?


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D44226





More information about the cfe-commits mailing list