[SERVER-48177] Prefix-less resmoke console logger Created: 13/May/20  Updated: 06/Dec/22  Resolved: 25/Feb/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kevin Pulo Assignee: Backlog - Server Tooling and Methods (STM) (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-54723 Shorten resmoke log prefixes Closed
Assigned Teams:
Server Tooling & Methods
Sprint: Evergreen 2020-09-21, Evergreen 2020-10-05
Participants:
Story Points: 2

 Description   

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:

--- 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



 Comments   
Comment by Robert Guo (Inactive) [ 25/Feb/21 ]

I'm closing this as a dupe of SERVER-54723 to shorten the prefixes and timestamps.

Comment by Iryna Zhuravlova [ 25/Feb/21 ]

carl.worley and robert.guo we are moving this ticket out of our backlog. Can you confirm if you have capacity to work on it in the nearest time? 

Comment by Kevin Pulo [ 13/May/20 ]

And of course one minute after filing this, I think to try passing an absolute path to resmoke's --log argument, which works and means I can easily do this myself by keeping that file in my home directory. Leaving this ticket open in case you think this might be generally useful to others, and worth adding into buildscripts/resmokeconfig/loggers/ — but if not, feel free to close as Won't Do.

Generated at Thu Feb 08 05:16:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.