jsonlogger.py 417 B

123456789101112131415161718
  1. """Stub module retained for compatibility.
  2. It retains access to old names whilst sending deprecation warnings.
  3. """
  4. # pylint: disable=wrong-import-position,unused-import
  5. import warnings
  6. ## Throw warning
  7. warnings.warn(
  8. "pythonjsonlogger.jsonlogger has been moved to pythonjsonlogger.json",
  9. DeprecationWarning,
  10. )
  11. ## Import names
  12. from .json import JsonFormatter, JsonEncoder
  13. from .core import RESERVED_ATTRS