Components Crossplatform Mac & Win Server Client Old Deprecated Guides Examples Videos
New in version: 11.2 11.3 11.4 11.5 12.0 12.1 12.2 12.3 12.4 12.5 Statistic FMM Blog
Starts logging all plugin calls to a text file.
|Trace||2.4||✅ Yes||✅ Yes||✅ Yes||✅ Yes||✅ Yes|
|path||The native file path to the log file.||"/Users/name/Desktop/debug.txt"||Optional|
|Append||Whether to append or create new file.
Pass 1 to append or 0 (default) for new file.
Returns "OK" on success.
DescriptionStarts logging all plugin calls to a text file.
If you pass a path, debug messages are written to the file. Else the plugin writes to debug console. See Console.app on Mac or DebugView on Windows.
See also Trace.Off and Trace.SetErrorsOnly.
On Linux, if no path is provided, the log output will go to stderr, which is usually redirected by our plugin to /FileMakerData/Logs/ or /opt/FileMaker/FileMaker Server/Logs/ folder. The log files are WebPluginsStdErr and WebPluginsStdOut for Web Direct and ServerScriptingPluginsStdErr and ServerScriptingPluginsStdOut for normal scripting.
On Windows with a FileMaker Server, you can see debug messages in DebugView if you run DebugView application as admin and enable global Win32 listening.
For FileMaker Server on macOS you can see messages in /Library/FileMaker Server/Logs/stderr file.
On Windows the log file is UTF-16 with BOM and CRLF as line endings. On macOS, Linux and iOS, you get an UTF-8 file with BOM and LF line endings.
See Trace.GetErrorsOnly, Trace.GetWithTimes, Trace.SetErrorsOnly and Trace.SetWithTimes to set options.
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.
Log plugin calls to console:
Log plugin calls to desktop on Windows:
Log plugin calls to temp folder on Mac or Linux:
Log to log file on desktop:
Setup logging on server with multiple log files and times:
- Trigger scripts via plugin and fmplugin extended privilege
- FileMaker Server with Data API Plugins
- Looping over records in FileMaker with error checking
- Debugging problems on FileMaker Cloud for AWS
- DbgView for watching trace messages live on FileMaker Server
- MBS FileMaker Plugin, version 8.1pr6
- Using MBS Plugin with FileMaker iOS SDK
- MBS FileMaker Plugin for iOS Update
- Properly register MBS FileMaker Plugin
- 4000 functions in 10 years
Created 18th August 2014, last changed 9th September 2021
Feedback: Report problem or ask question.