Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem