MongoDB.Trace
-------------

Enables or disables trace.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [MongoDB](component_MongoDB.md) | [13.4](newinversion134.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "MongoDB.Trace" { ; Enable } ) 

**MBS**( **"MongoDB.Trace";** /\* Enables or disables trace. \*/  
**$Enable**) /\* Optional; Pass 1 to enable or 0 to disable.  
Default is 1.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Enable | Pass 1 to enable or 0 to disable.   Default is 1. | 1 | Optional |

### Result

Returns OK or error.

### Description

Enables or disables trace.  
If trace is enabled, MongoDB-c library will write a log of trace messages to console (stderr/stdout).  
You see trace messages on macOS in the Terminal window, if you run FileMaker via Terminal.  
### Examples

Enable trace:

 MBS ( "MongoDB.Trace" )  
Disable trace:

 MBS ( "MongoDB.Trace"; 0 )  
### See also

- [MongoDB.Time](MongoDBTime.md)

### 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)

Created 22nd July 2023 , last changed 22nd July 2023

  
[MongoDB.Time](MongoDBTime.md) - [MongoDB.TransactionState](MongoDBTransactionState.md)

[HTML Version](MongoDBTrace.shtml)