Message262700
Using the stream or other options requires much more coding (for example, an additional redirection of sys.stdout to a file) instead of just one line with the basicConfig.
In the meanwhile, I tried to use logging.FileHandler instead where I could specify the encoding in parameters and it works as I wanted when used the basicConfig method.
Anyway, it would be nice to have the encoding parameter among the basicConfig parameters when logging to files. |
|
Date |
User |
Action |
Args |
2016-03-31 18:46:04 | janis.slapins | set | recipients:
+ janis.slapins, vinay.sajip |
2016-03-31 18:46:04 | janis.slapins | set | messageid: <1459449964.22.0.245714340784.issue26606@psf.upfronthosting.co.za> |
2016-03-31 18:46:04 | janis.slapins | link | issue26606 messages |
2016-03-31 18:46:03 | janis.slapins | create | |
|