[SERVER-30513] Add to log lines the file name and the line number from where this log was printed Created: 03/Aug/17  Updated: 01/Aug/19  Resolved: 01/Aug/19

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

Type: Task Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 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



 Comments   
Comment by Misha Tyulenev [ 01/Aug/19 ]

It will be addressed in the structured logging followup

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