How to write logfile with errors in Python?

Question

How to write logfile with errors in Python?

Re: How to write logfile with errors in Python?

Use sys module which controls stdin, stdout, and stderr.
>> sys.stderr.write('Starting printing errors'