1
1
---
2
- title : " Find your Session ID."
2
+ title : " Find your Log ID."
3
3
level : 4
4
4
ref : session-id
5
5
content : |
6
6
7
7
.. example::
8
8
9
- |mdb-shell| displays the session ID each time you open the shell.
9
+ |mdb-shell| displays the log ID each time you open the shell.
10
10
11
11
.. code-block:: javascript
12
12
:copyable: false
13
13
:emphasize-lines: 3
14
14
15
15
$ mongosh
16
16
17
- Current sessionID : c2961dbd6b73b052671d9df0
17
+ Current Mongosh Log ID : c2961dbd6b73b052671d9df0
18
18
Connecting to: mongodb://127.0.0.1:27017
19
19
Using MongoDB: 4.2.8
20
20
Using Mongosh Beta: 0.0.6
@@ -35,19 +35,19 @@ content: |
35
35
36
36
.. code-block:: sh
37
37
38
- ~/.mongodb/mongosh/<sessionId >_log
38
+ ~/.mongodb/mongosh/<LogID >_log
39
39
40
40
Run the following command to view the log for a session:
41
41
42
42
.. code-block:: sh
43
43
44
- cat ~/.mongodb/mongosh/<sessionId >_log
44
+ cat ~/.mongodb/mongosh/<LogID >_log
45
45
46
46
Run the following command to tail the log for a session:
47
47
48
48
.. code-block:: sh
49
49
50
- tail -f ~/.mongodb/mongosh/<sessionId >_log
50
+ tail -f ~/.mongodb/mongosh/<LogID >_log
51
51
52
52
.. tip::
53
53
@@ -59,27 +59,27 @@ content: |
59
59
60
60
.. code-block:: sh
61
61
62
- tail -f ~/.mongodb/mongosh/<sessionId >_log | pino-colada
62
+ tail -f ~/.mongodb/mongosh/<LogID >_log | pino-colada
63
63
64
64
.. tab::
65
65
:tabid: windows
66
66
67
67
.. code-block:: sh
68
68
69
- %UserProfile%/.mongodb/mongosh/<sessionId >_log
69
+ %UserProfile%/.mongodb/mongosh/<LogID >_log
70
70
71
71
Run the following PowerShell command to view the log for a session:
72
72
73
73
.. code-block:: sh
74
74
75
- Get-Content %UserProfile%/.mongodb/mongosh/<sessionId >_log
75
+ Get-Content %UserProfile%/.mongodb/mongosh/<LogID >_log
76
76
77
77
Run the following PowerShell command to tail the log for a
78
78
session:
79
79
80
80
.. code-block:: sh
81
81
82
- Get-Content %UserProfile%/.mongodb/mongosh/<sessionId >_log -Wait
82
+ Get-Content %UserProfile%/.mongodb/mongosh/<LogID >_log -Wait
83
83
84
84
.. tip::
85
85
@@ -91,6 +91,6 @@ content: |
91
91
92
92
.. code-block:: sh
93
93
94
- Get-Content %UserProfile%/.mongodb/mongosh/<sessionId >_log -Wait | pino-colada
94
+ Get-Content %UserProfile%/.mongodb/mongosh/<LogID >_log -Wait | pino-colada
95
95
96
96
...
0 commit comments