pylogconf package

Submodules

pylogconf.core module

core.py

pylogconf.core.create_pylogconf_file() → None[source]
pylogconf.core.remove_all_root_handlers() → None[source]

This function can be used to reverse the effects of basicConfig :return:

pylogconf.core.setup(level: int | str | None = None) → None[source]

This is the main API that this module exposes. It sets up logging and exception handling :return:

pylogconf.core.setup_exceptions() → None[source]

Only print the heart of the exception and not the stack trace

pylogconf.core.setup_logging(level: int | str | None = None) → None[source]

setup the logging system

pylogconf.core.setup_scrapy() → None[source]

This is not needed as we pass “LOG_ENABLED”:False to scrapy at init time

pylogconf.core.setup_syslog(name: str, level: int) → None[source]

Configure systemd daemon type logging :param name: :param level: :return:

pylogconf.core.show_tree() → None[source]

Show the logging tree

pylogconf.static module

version which can be consumed from within the module

Module contents

Initialize the module