2

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?

Fezter
22k11 gold badges72 silver badges128 bronze badges
asked Sep 11, 2014 at 13:17
2

1 Answer 1

0

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.

answered Oct 4, 2014 at 18:22
4
  • This print log when FME process end. I would like to display log immediately. Commented Oct 6, 2014 at 7:41
  • a config option? - docs.safe.com/fme/html/FME_QuickTranslator/… Commented Oct 7, 2014 at 1:50
  • Do You now wher/how can I set this parametr? Commented 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.' Commented Nov 2, 2014 at 9:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.