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

Add to log lines the file name and the line number from where this log was printed

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Diagnostics
    • None

    Description

      This will allow to implement a viewer that can jump into the code line that printed the log line.
      Its possible only when log printing message is a macro so it can evaluate compile time _FILE_ and _LINE_.
      Currently LOG is a macro but log() and log(component) is not.
      So this task has the following components:
      1. convert all log printing functions to macros
      2. implement printing current file and line in the format that can be processed by a client viewer
      3. implement a compile time option -D that enables this new functionality and use it for the evergreen builds

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            misha.tyulenev@mongodb.com Misha Tyulenev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: