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:
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
Statistic
FMM
Blog
Trace.SetServerLogPath
Enables logging per thread for server.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
Plugin | 10.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameters
Parameter | Description | Example |
---|---|---|
Path | The native folder path. | "/tmp" |
Result
Returns OK or error.
Description
Enables logging per thread for server.Only useful on server, where multiple scripts may run in parallel and each may log to its own file.
We suggest to use /tmp folder as this gets cleaned on server restart, but FileMaker's log folder may also work.
Does nothing if called on client.
Be aware that FileMaker Server reuses threads and the logs append the files, so when a script is done, the log file gets reused for another script.
See also Trace.SetWithTimes to enable times in trace log.
This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.
For Server be aware that server has limited permissions and may not be able to access all files on a computer.
Examples
Set tmp as log folder:
Set Variable [ $r; Value: MBS( "Trace.SetServerLogPath"; "/tmp" ) ]
Log to FileMaker's log folder on a Linux server:
MBS( "Trace.SetServerLogPath"; "/opt/FileMaker/FileMaker Server/Logs/")
See also
Blog Entries
- What is new in the MBS FileMaker Plugin Version 10.4
- Neues MBS FileMaker Plugin 10.4
- MBS FileMaker Plugin 10.4 - More than 6300 Functions In One Plugin
- MBS FileMaker Plugin, version 10.4pr7
- Socket changes for MBS FileMaker Plugin
Release notes
- Version 10.4
- Added Trace.GetServerLogPath and Trace.SetServerLogPath functions. Allows to have one trace log file per thread.
Created 31st August 2020, last changed 31st August 2020
Trace.SetErrorsOnly - Trace.SetWithTimes
Feedback: Report problem or ask question.

Links
MBS Xojo blog