datalad-core/datalad_core/services/logger.py
Michael Hanke 5a2f33ad05
feat: add loguru-based logging facility
A global ENV variable based switch is added
(DATALAD_CORE_LOGGER_ENABLE), which, when set, prevents the disabling
of the `datalad_core`-scoped logger. A fully disabled logger is
the default and expected behavior for a library.

In addition, a `datalad_core_logger` test fixture is provided that
enables a TRACE-level logger (-> stderr) for an individual test.
Arguable, debugging a single test like this is more common then
running all tests with full logging.

In contrast to legacy-datalad, there is no log *rendering* code to be
tested in the library.
2026-07-21 04:29:40 +02:00

4 lines
49 B
Python

__all__ = ['logger']
from loguru import logger