Error Handling & Logging 3
If you haven't added logging into your FileMaker solutions, then you don't know what you're missing, and there's no better time than the present to do so. With the release of this video and technique file, you'll find an updated version of a long-running topic which goes back to 2013.
The functionality we had in 2013 and 2020 is different than what we have now. We're always trying to take advantage of newer features and improve what we use in our solutions. If you've not watched the previous video from 2020, then you'll find a link to that one below. There are certainly some similar aspects, but we've got some new features and functionality added in. This one is certainly worth the watch.
Like the previous versions, this solution has both error handling and logging included. You'll also find some creative solutions to replicating the exact user environment from when an error occurred for a client. One of the biggest benefits of using a server-based logging system is that you can more easily troubleshoot those harder Perform Script on Server processes. For the benefit of knowing what your solutions' users and scripts are doing, it's highly suggested you take advantage of this wonderful logging system.
Comments
Custom functions - folders
I’m probably not the first to mention this, pretty sure I’m not, but it would it a nice feature addition from Claris’ part to add the possibility to use folders in the Manage Custom Functions dialog, much like we have for manage layouts and scripts. As for this technique we already have 32 custom functions, off course some are utility functions and other could go into a folder Logging. All to keep those custom functions more manageable.
Just my thought.
The "Log Entry" script creates 2 record in "async" mode.
I copied the technique into my solution and I probed in "async" mode from a client and it creates 2 records, one in the server side and another one in the client side. I think there should be an Exit Script step after the step "Perform Script on Server (Wait for completion: Off).
What do you think about?
Thank you Matt.