__init__.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the MIT License. See the LICENSE file in the root of this
  3. # repository for complete details.
  4. """
  5. Structured logging for Python.
  6. """
  7. from __future__ import absolute_import, division, print_function
  8. from structlog import (
  9. dev,
  10. processors,
  11. stdlib,
  12. threadlocal,
  13. )
  14. from structlog._base import (
  15. BoundLoggerBase,
  16. )
  17. from structlog._config import (
  18. configure,
  19. configure_once,
  20. getLogger,
  21. get_logger,
  22. reset_defaults,
  23. wrap_logger,
  24. )
  25. from structlog.exceptions import (
  26. DropEvent,
  27. )
  28. from structlog._generic import (
  29. BoundLogger
  30. )
  31. from structlog._loggers import (
  32. PrintLogger,
  33. PrintLoggerFactory,
  34. ReturnLogger,
  35. ReturnLoggerFactory,
  36. )
  37. try:
  38. from structlog import twisted
  39. except ImportError: # pragma: nocover
  40. twisted = None
  41. __version__ = "17.2.0"
  42. __title__ = "structlog"
  43. __description__ = "Structured Logging for Python"
  44. __uri__ = "http://www.structlog.org/"
  45. __author__ = "Hynek Schlawack"
  46. __email__ = "hs@ox.cx"
  47. __license__ = "MIT or Apache License, Version 2.0"
  48. __copyright__ = "Copyright (c) 2013 {0}".format(__author__)
  49. __all__ = [
  50. "BoundLogger",
  51. "BoundLoggerBase",
  52. "DropEvent",
  53. "PrintLogger",
  54. "PrintLoggerFactory",
  55. "ReturnLogger",
  56. "ReturnLoggerFactory",
  57. "configure",
  58. "configure_once",
  59. "getLogger",
  60. "get_logger",
  61. "dev",
  62. "processors",
  63. "reset_defaults",
  64. "stdlib",
  65. "threadlocal",
  66. "twisted",
  67. "wrap_logger",
  68. ]