On 23 September 2015 at 08:41, Mike Dewhirst <mi...@dewhirst.com.au> wrote:
> Thanks John - no success yet, see below ...
>
> logfile = "my_logfile".encode(encoding='utf_8', errors='strict')

This line is the same as doing this:

  logfile = b"my_logfile"

Probably what you want is more like:

'handlers' : {
  'file' : {
    ...
    'encoding' : 'utf-8',

Guessing by this signature:

https://docs.python.org/3.4/library/logging.handlers.html#logging.FileHandler

-- 
William Leslie

Notice:
Likely much of this email is, by the nature of copyright, covered
under copyright law.  You absolutely MAY reproduce any part of it in
accordance with the copyright law of the nation you are reading this
in.  Any attempt to DENY YOU THOSE RIGHTS would be illegal without
prior contractual agreement.
_______________________________________________
melbourne-pug mailing list
melbourne-pug@python.org
https://mail.python.org/mailman/listinfo/melbourne-pug

Reply via email to