[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Making A Module



RR4CLB wrote:
    But, if there is a way to send all error messages to a file I would like to know.

From outside the program, you can redirect standard
error into a file using whatever technique is appropriate
for your platform.

From inside the program, you can replace sys.stderr with
a file object open for writing, e.g.

  import sys
  sys.stderr = open("my_errors.log", "w")

--
Greg