I created a Spatial ETL ToolBox in ArcCatalog. When I run the tool from ArcCatalog I see log massages. But when I run this tool from a python script, the logs do not print to the python console.
import arcpy
arcpy.ImportToolbox(r"c:\Toolbox123.tbx")
arcpy.SpatialETLTool(param1,param2,...)
How to print log from FME when running from python script?
-
fmepedia.safe.com/articles/Error_Unexpected_Behavior/… 8th September 2014Mapperz– Mapperz ♦2014年09月11日 14:09:22 +00:00Commented Sep 11, 2014 at 14:09
-
I dont want to create owne log. I want print log from any Transformer with I use in SpatialETLTooluser7172– user71722014年09月12日 08:55:05 +00:00Commented Sep 12, 2014 at 8:55
1 Answer 1
not familiar with FME - but a search turned up some code that basically said
# echo log file to stdout
logFile = open(logFilename, 'r')
for line in logFile.readlines():
print line
from here. So what @mapperz may be alluding to is creating a log file - then grabbing the output and writing to the console.
-
This print log when FME process end. I would like to display log immediately.user7172– user71722014年10月06日 07:41:34 +00:00Commented Oct 6, 2014 at 7:41
-
a config option? - docs.safe.com/fme/html/FME_QuickTranslator/…fluidmotion– fluidmotion2014年10月07日 01:50:16 +00:00Commented Oct 7, 2014 at 1:50
-
Do You now wher/how can I set this parametr?user7172– user71722014年10月31日 07:47:15 +00:00Commented Oct 31, 2014 at 7:47
-
Not certain - you could try the method at this page that says 'To configure FME Workbench to generate a (.log) file each time you run a translation, click Tools > FME Options, click Runtime on the navigation menu, then check the Save log to file check box.'fluidmotion– fluidmotion2014年11月02日 09:37:17 +00:00Commented Nov 2, 2014 at 9:37
Explore related questions
See similar questions with these tags.