Re: Using loguru in a library

2023-05-02 Thread Roy Hann
Dieter Maurer wrote: > Roy Hann wrote at 2023-4-30 15:40 -: >>Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >>library? >> ... >> import mylib >> logger.enable('mylib') >> >>expecting that it would report any log messages above level DEBUG, just >>as it does when I

Re: Using loguru in a library

2023-05-02 Thread Dieter Maurer
Roy Hann wrote at 2023-4-30 15:40 -: >Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >library? > ... > import mylib > logger.enable('mylib') > >expecting that it would report any log messages above level DEBUG, just >as it does when I don't disable logging. Have you

Re: Using loguru in a library

2023-05-02 Thread Roy Hann
MRAB wrote: > On 2023-04-30 16:40, Roy Hann wrote: >> Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a >> library? >> >> >> In my __init__.py in mylib I do >> >>logger.disable('mylib') >> >> which definitely works. I don't get any more logging. >> >> I "pip install

Re: Using loguru in a library

2023-05-01 Thread MRAB
On 2023-04-30 16:40, Roy Hann wrote: Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a library? In my __init__.py in mylib I do logger.disable('mylib') which definitely works. I don't get any more logging. I "pip install ." the library, then in mytest.py I do im

Using loguru in a library

2023-05-01 Thread Roy Hann
Is there anyone using loguru (loguru 0.5.3 in my case) successfully in a library? In my __init__.py in mylib I do logger.disable('mylib') which definitely works. I don't get any more logging. I "pip install ." the library, then in mytest.py I do import mylib logger.enable('mylib') exp