Created
July 4, 2014 07:55
-
-
Save sofferm/84b450f10e68d0638918 to your computer and use it in GitHub Desktop.
FME log function for Startup/Shutdown scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
def log(message): | |
print("%s | Python Shutdown | %s"%(time.asctime(),message)) | |
with open(fme.logFileName,"a") as logfile: | |
logfile.write("%s | Python Shutdown | %s\n"%(time.asctime(),message)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment