Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 12.0 12.1 12.2 12.3 12.4 12.5 13.0 13.1 13.2 13.3 Statistic FMM Blog
Enables logging per thread for server.
|Trace||10.4||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
$Path) /* The native folder path.e.g. "/tmp" */ Less
|Path||The native folder path.||"/tmp"|
Returns OK or error.
DescriptionEnables 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.
Since this function also enables trace if not yet running, there is no need to call Trace function.
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.
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/")
Enables logging on Windows Server:
Set Variable [ $r; Value: MBS( "Trace.SetServerLogPath"; "C:\Program Files\FileMaker\FileMaker Server\Logs\\") ]
Setup logging on server with multiple log files and times:
Set Variable [ $r; Value: MBS( "Trace.SetWithTimes"; 1) ]
Set Variable [ $r; Value: MBS( "Trace.SetServerLogPath"; "/Library/FileMaker Server/Logs/") ]
Set Variable [ $r; Value: MBS( "Trace") ]
- Version 10.4
- Added Trace.GetServerLogPath and Trace.SetServerLogPath functions. Allows to have one trace log file per thread.
- Watching for Errors with MBS Plugin
- 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
This function does not need a paid license.
Created 31st August 2020, last changed 9th September 2021