2003-04-11
logger_fn = "C:/my/log/file/name.txt"
flogger = None
def logRenders ( post ):
# Log all of the rendering calls. Somewhat slow.
global flogger
if flogger is None:
flogger = open( logger_fn, 'a' ) # Write, Append
print >>flogger, ' URL(%s), TITLE(%s)' % ( post.GetUrl(), post["title"] )