On Jun 2, 12:34 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson wrote:
> > In my unittest I want to override the logger of a working module so
> > that it puts all logging messages in /tmp/test.log instead so that in
> > my unittest I can inspect that it logs things correctly. H
On Jun 2, 12:34 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson wrote:
> > In my unittest I want to override the logger of a working module so
> > that it puts all logging messages in /tmp/test.log instead so that in
> > my unittest I can inspect that it logs things correctly. H
Peter Bengtsson wrote:
> In my unittest I want to override the logger of a working module so
> that it puts all logging messages in /tmp/test.log instead so that in
> my unittest I can inspect that it logs things correctly. Hopefully
> this "pseudo" code will explain my problem::
>
import lo
In my unittest I want to override the logger of a working module so
that it puts all logging messages in /tmp/test.log instead so that in
my unittest I can inspect that it logs things correctly. Hopefully
this "pseudo" code will explain my problem::
>>> import logging, os
>>> logging.basicConfig(f