--- - branch: MAIN date: Sun Feb 7 15:42:49 UTC 2021 files: - new: '1.11' old: '1.10' path: pkgsrc/sysutils/py-structlog/Makefile pathrev: pkgsrc/sysutils/py-structlog/Makefile@1.11 type: modified - new: '1.4' old: '1.3' path: pkgsrc/sysutils/py-structlog/PLIST pathrev: pkgsrc/sysutils/py-structlog/PLIST@1.4 type: modified - new: '1.10' old: '1.9' path: pkgsrc/sysutils/py-structlog/distinfo pathrev: pkgsrc/sysutils/py-structlog/distinfo@1.10 type: modified id: 20210207T154249Z.b4a3d4a25bfa39e194b9e768b2d6aae042eeb6e0 log: "py-structlog: updated to 20.2.0\n\n20.2.0\n\nBackward-incompatible changes:\n\n- Python 2.7 and 3.5 aren't supported anymore.\n The package meta data should ensure that you keep getting 20.1.0 on those versions.\n\n- ``structlog`` is now fully type-annotated.\n This won't break your applications, but if you use Mypy, it will most likely break your CI.\n\n Check out the new chapter on typing for details.\n\nDeprecations:\n\n- Accessing the ``_context`` attribute of a bound logger is now deprecated.\n Please use the new ``structlog.get_context()``.\n\nChanges:\n\n- ``structlog`` has now type hints for all of its APIs!\n Since ``structlog`` is highly dynamic and configurable, this led to a few concessions like a specialized ``structlog.stdlib.get_logger()`` whose only difference to ``structlog.get_logger()`` is that it has the correct type hints.\n\n We consider them provisional for the time being รข\x80\x93 i.e. the backward compatibility does not apply to them in its full strength until we feel we got it right.\n Please feel free to provide feedback!\n- Added ``structlog.make_filtering_logger`` that can be used like ``configure(wrapper_class=make_filtering_bound_logger(logging.INFO))``.\n \ It creates a highly optimized bound logger whose inactive methods only consist of a ``return None``.\n This is now also the default logger.\n- As a complement, ``structlog.stdlib.add_log_level()`` can now additionally be imported as ``structlog.processors.add_log_level`` since it just adds the method name to the event dict.\n- ``structlog.processors.add_log_level()`` is now part of the default configuration.\n- ``structlog.stdlib.ProcessorFormatter`` no longer uses exceptions for control flow, allowing ``foreign_pre_chain`` processors to use ``sys.exc_info()`` to access the real exception.\n- Added ``structlog.BytesLogger`` to avoid unnecessary encoding round trips.\n Concretely this is useful with *orjson* which returns bytes.\n- The final processor now also may return bytes that are passed untouched to the wrapped logger.\n- ``structlog.get_context()`` allows you to retrieve the original context of a bound logger.\n- ``structlog.PrintLogger`` now supports ``copy.deepcopy()``.\n- Added ``structlog.testing.CapturingLogger`` for more unit testing goodness.\n- Added ``structlog.stdlib.AsyncBoundLogger`` that executes logging calls in a thread executor and therefore doesn't block.\n" module: pkgsrc subject: 'CVS commit: pkgsrc/sysutils/py-structlog' unixtime: '1612712569' user: adam