[SERVER-9966] Enable C++ driver logging on DEBUG level Created: 19/Jun/13 Updated: 09/Jul/16 Resolved: 01/Jul/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Client |
| Affects Version/s: | 2.2.3 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Daniel Stefan Tacalau | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Fedora 16 |
||
| Participants: |
| Description |
|
I'd like to know how can one enable C++ driver logging on DEBUG level? I've tried using mongo::initLogging(<some-file>, true) but it does not write too much. It seems to write only messages logged by calls to "log()" and it does not write messages logged by "log(<some-level>)". I researched this on the net and forums but I wasn't able to find anything else. This would help us investigate C++ driver issues like the one I've reported in " Thanks, |
| Comments |
| Comment by Daniel Pasette (Inactive) [ 01/Jul/13 ] |
|
logLevel 5 is the maximum level. |
| Comment by Daniel Stefan Tacalau [ 01/Jul/13 ] |
|
What can I do to get the most verbose logs from the C++ driver? Will setting "mongo::logLevel = 6;" be enough? Thanks, |
| Comment by Randolph Tan [ 19/Jun/13 ] |
|
Hi, You should be able to do so by setting the global variable mongo::logLevel to any value > 0. |