Menu

#13 Allow logging of sql statements to STDOUT

None
closed
logging (2)
5
2019-09-11
2019-09-11
No

By setting any of the following variables to 'STDOUT' their output will be printed to STDOUT instead of to an actual log file.

  • longRunningLog
  • sqlStatementLog

If logging to STDOUT, then we need to prefix the output with a string so the caller can filter the output. Defaults are:

  • LONG RUNNING SQL:
  • SQL:

Add longRunningPrefix and sqlStatementPrefix parameters to new() so the caller can customize these values as needed.

Discussion

  • James A. Pattie

    James A. Pattie - 2019-09-11
    • status: open --> closed
    • Group: -->
     
  • James A. Pattie

    James A. Pattie - 2019-09-11

    This feature has been implemented in v0.34.
    Unit test coverage added to validate it is working as designed.

     

Log in to post a comment.

MongoDB Logo MongoDB