File: logging.rst

package info (click to toggle)
python-injector 0.21.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: python: 1,908; makefile: 146
file content (14 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Logging
=======

Injector uses standard :mod:`logging` module, the logger name is ``injector``.

By default ``injector`` logger is not configured to print logs anywhere.

To enable ``get()`` tracing (and some other useful information) you need to set ``injector`` logger level to ``DEBUG``. You can do that by executing::

    import logging

    logging.getLogger('injector').setLevel(logging.DEBUG)

or by configuring :mod:`logging` module in any other way.