When attempting to archive a log file programmatically using the archiveLogFile() method of servermanager is there a way to test the success/failure of the action. I tried
adminObj = createObject("component","cfide.adminapi.administrator").login("topsecret"); serverObj = createObject("component","cfide.adminapi._servermanager.servermanager"); result = serverObj.archiveLogFile("logfilename"); writeDump(result);
However, result is undefined.
That function has a void returntype, that's why.
Instead you'd have to do something like a directory read to see if the file had been renamed.