Trace.SetWithTimes
------------------

Sets whether to include times in traces.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Trace](component_Trace.md) | [9.3](newinversion93.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Trace.SetWithTimes"; Value ) 

**MBS**( **"Trace.SetWithTimes";** /\* Sets whether to include times in traces. \*/  
**$Value**) /\* The new setting.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting. | 1 |

### Result

Returns OK or error.

### Description

Sets whether to include times in traces.  
### Examples

Start log on desktop folder and include all calls with times:

 Set Variable \[ $FilePath ; Value: MBS ( "[Path.AddPathComponent](PathAddPathComponent.md)"; MBS ( "[Folders.UserDesktop](FoldersUserDesktop.md)" ); "trace.txt" ) \]   
Set Variable \[ $a ; Value: MBS ( "[Trace.SetErrorsOnly](TraceSetErrorsOnly.md)"; 0 ) \]   
Set Variable \[ $b ; Value: MBS ( "Trace.SetWithTimes"; 1 ) \]   
Set Variable \[ $c ; Value: MBS ("Trace"; $FilePath ) \]  
Enable advanced logging to debug a problem with CURL:

 # Trace to file with times   
Set Variable \[ $r ; Value: MBS ( "Trace"; "/tmp/mbs .log" ) \]  
Set Variable \[ $r ; Value: MBS ( "Trace.SetWithTimes"; 1 ) \]  
\#   
\# Debug log for CURL with additional data:   
Set Variable \[ $r ; Value: MBS ( "[CURL.SetDebugWithTime](CURLSetDebugWithTime.md)"; $curl ; 1 ) \]  
Set Variable \[ $r ; Value: MBS ( "[CURL.SetDebugWithProgress](CURLSetDebugWithProgress.md)"; $curl ; 1 ) \]  
\#   
\# and define some timeouts   
Set Variable \[ $r ; Value: MBS ( "[CURL.SetOptionConnectTimeoutMS](CURLSetOptionConnectTimeoutMS.md)"; $curl ; 10000 ) \]  
### See also

- [CURL.SetDebugWithProgress](CURLSetDebugWithProgress.md)
- [CURL.SetDebugWithTime](CURLSetDebugWithTime.md)
- [CURL.SetOptionConnectTimeoutMS](CURLSetOptionConnectTimeoutMS.md)
- [Folders.UserDesktop](FoldersUserDesktop.md)
- [Path.AddPathComponent](PathAddPathComponent.md)
- [Trace](Trace.md)
- [Trace.GetWithTimes](TraceGetWithTimes.md)
- [Trace.SetErrorsOnly](TraceSetErrorsOnly.md)
- [Trace.SetServerLogPath](TraceSetServerLogPath.md)

### Release notes

- **Version 15.2**
    - Changed tracing to log time with start script if [Trace.SetWithTimes](https://www.mbsplugins.eu/TraceSetWithTimes.shtml) function.
- **Version 9.3**
    - Added [Trace.GetErrorsOnly](http://www.mbsplugins.eu/TraceGetErrorsOnly.shtml), [Trace.GetWithTimes](http://www.mbsplugins.eu/TraceGetWithTimes.shtml), [Trace.SetErrorsOnly](http://www.mbsplugins.eu/TraceSetErrorsOnly.shtml) and [Trace.SetWithTimes](http://www.mbsplugins.eu/TraceSetWithTimes.shtml).

### Blog Entries

- [MBS FileMaker Plugin, version 15.2pr6](https://www.mbsplugins.de/archive/2025-04-25/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [Watching for Errors with MBS Plugin](https://www.mbsplugins.de/archive/2021-03-18/Watching_for_Errors_with_MBS_P/monkeybreadsoftware_blog_filemaker)
- [Neues vom MBS Plugin 9.3](https://www.mbsplugins.de/archive/2019-09-13/Neues_vom_MBS_Plugin_93/monkeybreadsoftware_blog_filemaker)
- [Whats new in MBS FileMaker Plugin version 9.3](https://www.mbsplugins.de/archive/2019-08-17/Whats_new_in_MBS_FileMaker_Plu/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.3pr6](https://www.mbsplugins.de/archive/2019-07-17/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 16th July 2019 , last changed 7th September 2025

  
[Trace.SetServerLogPath](TraceSetServerLogPath.md) - [Trace.WriteLine](TraceWriteLine.md)

[HTML Version](TraceSetWithTimes.shtml)