Thomas Dimson wrote:
> On Apr 10, 8:11 am, "sven _" <[EMAIL PROTECTED]> wrote:
>> My goal is to have stdout and stderr written to a logging handler.
>> This code does not work:
>>
>> # START
>> import logging, subprocess
>> ch = logging.StreamHandler()
>> ch.setLevel(logging.DEBUG)
>> subp
Vinay Sajip wrote:
> On Apr 10, 1:11 pm, "sven _" <[EMAIL PROTECTED]> wrote:
>> My goal is to have stdout and stderr written to a logginghandler.
>
> Thomas was almost right, but not quite - you can't call info on a
> Handler instance, only on a Logger instance. The following script:
Yes, but