I am using a ArcPy tool update some feature in ArcGIS desktop, also generating a log file to update some of the tasks, the script running fine in the desktop. When publishing it as a service to call the same from ArcGIS server, the log file is not created in the given path, but the process was completed successfully and the results are updated. What would be the correct way for creating a log file(or any other file) from a geoprocessing service?