MongoDB.IsTracing
-----------------

Queries whether trace is enabled.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [13.4](newinversion134.md) | ✅ 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

- **Version 13.4**
    - Added [MongoDB.IsTracing](https://www.mbsplugins.eu/MongoDBIsTracing.shtml) and [MongoDB.Trace](https://www.mbsplugins.eu/MongoDBTrace.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 13.4](https://www.mbsplugins.de/archive/2023-09-20/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 13.4 für Claris FileMaker](https://www.mbsplugins.de/archive/2023-09-12/Neues_MBS_Plugin_134_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 13.4 for Claris FileMaker - More than 7100 Functions In One Plugin](https://www.mbsplugins.de/archive/2023-09-12/MBS_Plugin_134_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.4pr1](https://www.mbsplugins.de/archive/2023-08-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[MongoDB.InsertOne](MongoDBInsertOne.md) - [MongoDB.JSONtoBSON](MongoDBJSONtoBSON.md)

[HTML Version](MongoDBIsTracing.shtml)