[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dependency injection: overriding defaults

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.