Dependency injection: overriding defaults

dieter dieter at handshake.de
Fri Feb 2 02:06:19 EST 2018


Kushal Kumaran <kushal at locationd.net> writes:

> Victor Porton <porton at narod.ru> writes:
>> dieter wrote:
> ...
>>> I would distinguish between the common library and distinct
>>> applications (command line utility, daemon). The applications
>>> configure the logging system (differently) while the library uses
>>> uniform logging calls.
>>
>> You have essentially just repeated my requirements.
>>
>> But HOW to do this (using dependency_injector module)?
>>
>
> No idea how dependency_injector affects this, but have you read the
> logging howto? The section
> https://docs.python.org/3/howto/logging.html#configuring-logging-for-a-library
> would be appropriate.

In fact, it was something like this I had in mind.




More information about the Python-list mailing list