David Wikström Posted June 27, 2010 Posted June 27, 2010 I love the FTPeek logs. Does anyone have a custom function or something to easily obtain the location of the log file irrespective of OS, runtime, FileMaker version, etc? I could write one myself I guess but I'm hoping to save some efforts on this one.
Smef Posted June 28, 2010 Posted June 28, 2010 What are you trying to get from the log file? The FTPeek_LastError function should get you the information you need for error checking. If you have a problem with one of the functions you can call the FTPeek_LastError function to get information about the last plugin function error. The information returned by FTPeek_LastError is the same information which is written in the log file, minus the java logging which is really only useful for us when we need to make changes to the plugin.
David Wikström Posted June 28, 2010 Author Posted June 28, 2010 I find the logs to be more informative; it logs activity, not just errors. Since the plugin seems to log everything nicely all by itself, I can't see why I should slow down my script or loose time logging the same thing all over when I can just parse the log files. In addition, FTPeek_LastError only works if the plugin is working, and during the operation, whereas the logs can be accessed all the time.
Jesse Barnum Posted August 22, 2010 Posted August 22, 2010 Hi David - we don't have any programmatic way to retrieve the path to the log file. However, it will always be in the same place relative to the user's home directory. The main thing that will change is the actual file name for the log file, which is a combination of the plugin name and the type of environment it is being run in: /Users/jesse/Library/Logs/360Plugin Logs/360Works Charts_FMAdvanced.log /Users/jesse/Library/Logs/360Plugin Logs/360Works Charts_FMPro.log /Users/jesse/Library/Logs/360Plugin Logs/360Works Charts_WPE.log If they are running on the server, the paths would look like this: /Library/FileMaker Server/Logs/360Plugin Logs/360Works Email_Server.log /Library/FileMaker Server/Logs/360Plugin Logs/360Works Email_WPE.log Paths on Windows would be very similar, except they would be relative to the user's documents directory.
Recommended Posts
This topic is 5205 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now