-
Type: Task
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
2
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