- 
    Type:Task 
- 
    Resolution: Done
- 
    Priority:Minor - P4 
- 
    Affects Version/s: None
- 
    Component/s: Logging
- 
    None
- 
        2
- 
        Iteration U (Jan 27 - Feb 10), Iteration Venus
- 
        Needed
- 
        
The session logId is displayed when mongosh first starts up:
mongosh --port 27500
Current Mongosh Log ID: 61c1e8daae3c0e4461f2e5c7
Connecting to: mongodb://127.0.0.1:27500/?directConnection=true&serverSelectionTimeoutMS=2000
Using MongoDB: 5.2.0-alpha-955-g164367e
Using Mongosh: 1.1.6
It would be useful if there was a way to retrieve the logId later on during a session. Perhaps as a config setting:
config.get( "logId" )
or as some sort of variable:
var sessionLogId