On 2021-09-02 09:06:53 +0200, Loris Bennett wrote:
> Thanks Peter and Dieter for all the help. I have finally figured out
> what my problem was. If in a module 'mylibs.mylib' I have
>
> import logging
>
> logger = logging.getLogger(__name__)
>
> and in my main script have
>
> import log
"Dieter Maurer" writes:
> Loris Bennett wrote at 2021-9-1 13:48 +0200:
>> ...
>>Yes, but to quote from
>>https://docs.python.org/3.6/howto/logging.html#logging-basic-tutorial:
>>
>> A good convention to use when naming loggers is to use a module-level
>> logger, in each module which uses loggi
Loris Bennett wrote at 2021-9-1 13:48 +0200:
> ...
>Yes, but to quote from
>https://docs.python.org/3.6/howto/logging.html#logging-basic-tutorial:
>
> A good convention to use when naming loggers is to use a module-level
> logger, in each module which uses logging, named as follows:
>
>logge
On 01/09/2021 13:48, Loris Bennett wrote:
"Dieter Maurer" writes:
Loris Bennett wrote at 2021-8-31 15:25 +0200:
I am having difficulty getting the my logging configuration passed on
to imported modules.
My initial structure was as follows:
$ tree blorp/
blorp/
|-- blorp
| |-- __in
"Dieter Maurer" writes:
> Loris Bennett wrote at 2021-8-31 15:25 +0200:
>>I am having difficulty getting the my logging configuration passed on
>>to imported modules.
>>
>>My initial structure was as follows:
>>
>> $ tree blorp/
>> blorp/
>> |-- blorp
>> | |-- __init__.py
>> | |-- bar.py
Loris Bennett wrote at 2021-8-31 15:25 +0200:
>I am having difficulty getting the my logging configuration passed on
>to imported modules.
>
>My initial structure was as follows:
>
> $ tree blorp/
> blorp/
> |-- blorp
> | |-- __init__.py
> | |-- bar.py
> | |-- foo.py
> | `-- main.py
"Loris Bennett" writes:
> Hi,
>
> I am having difficulty getting the my logging configuration passed on
> to imported modules.
>
> My initial structure was as follows:
>
> $ tree blorp/
> blorp/
> |-- blorp
> | |-- __init__.py
> | |-- bar.py
> | |-- foo.py
> | `-- main.py
>