printtologfile#

printtologfile(message=None, filename=None)[source]#

Append a message string to a file specified by a filename name/path.

Note: in almost all cases, you are better off using Python’s built-in logging system rather than this function.