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

Prefix-less resmoke console logger

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 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
      

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

              Created:
              Updated:
              Resolved: