Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MongoDB.IsTracing

Queries whether trace is enabled.

Component Version macOS Windows Linux Server iOS SDK
MongoDB 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "MongoDB.IsTracing" )

Parameters

none

Result

Returns 1, 0 or error.

Description

Queries whether trace is enabled.
Returns 1 if enabled or 0 if not enabled.

Enabling trace logging can help to find bugs, but has a performance penalty.

Examples

Check whether tracing is enabled:

Set Variable [ $r ; Value: MBS( "MongoDB.IsTracing" ) ]
If [ $r ]
    Show Custom Dialog [ "Tracing enabled" ]
Else
    Show Custom Dialog [ "Tracing disabled" ]
End If

Release notes

Blog Entries

This function is free to use.

Created 22nd July 2023, last changed 27th August 2023


MongoDB.InsertOne - MongoDB.JSONtoBSON