-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Server Tooling & Methods
-
Evergreen 2020-09-21, Evergreen 2020-10-05
-
2
When running a single jstest locally (which is a common case, both during development and triaging of failures), the leading test name is mostly superfluous and just wastes valuable horizontal space — which I would rather have used for the actual log message, especially now that structured logging has made them longer and more likely to wrap in my terminal.
The already-present console_no_timestamps.yml does a similar thing, being identical to console.yml but without %(asctime)s.
Can we add a new console_no_prefix.yml which also omits [%(name)s]? ie. which compared to console.yml is:
Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
--- a/buildscripts/resmokeconfig/loggers/console.yml +++ b/buildscripts/resmokeconfig/loggers/console_no_prefix.yml @@ -8,6 +8,6 @@ logging: handlers: - class: logging.StreamHandler tests: - format: '[%(name)s] %(asctime)s %(message)s' + format: '%(message)s' handlers: - class: logging.StreamHandler
- duplicates
-
SERVER-54723 Shorten resmoke log prefixes
- Closed