Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48177

Prefix-less resmoke console logger

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • None
    • Server Tooling & Methods
    • Evergreen 2020-09-21, Evergreen 2020-10-05
    • 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
      

      Attachments

        Activity

          People

            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: