从 Windows 版[1]邮件发送
发件人: [2]Ivan "Rambius" Ivanov
发送时间: 2023年2月8日 23:29
收件人: [3]python-list@python.org
主题: Re: Question about logging.config.dictConfig
On Tue, Feb 7, 2023 at 7:35 PM Peter J. Holzer wrote:
>
> On 2023-02-07 17:5
On Tue, Feb 7, 2023 at 7:35 PM Peter J. Holzer wrote:
>
> On 2023-02-07 17:58:26 -0500, Ivan "Rambius" Ivanov wrote:
> > I am trying to configure my loggers using dictConfig, but they do not
> > print anything. Here are more details.
> [...]
> > from myloggingconf import configure_logging
> >
> >
On 2023-02-07 17:58:26 -0500, Ivan "Rambius" Ivanov wrote:
> I am trying to configure my loggers using dictConfig, but they do not
> print anything. Here are more details.
[...]
> from myloggingconf import configure_logging
>
> logger = logging.getLogger(os.path.basename(__file__))
[...]
>
> def
Hello,
I am trying to configure my loggers using dictConfig, but they do not
print anything. Here are more details.
I have several python scripts that use a similar logging setup. I put
the common configuration in a separate module myloggingconf.py:
# myloggingconf.py
import logging
def