[Checkins] [zopefoundation/ZConfig] 4ebf82: support styles for log formatters

GitHub noreply at github.com
Sat Dec 29 17:43:49 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/ZConfig
  Commit: 4ebf8280e532d90af5c8a2ad149201d290f80862
      https://github.com/zopefoundation/ZConfig/commit/4ebf8280e532d90af5c8a2ad149201d290f80862
  Author: Fred Drake <fred.drake at keepertech.com>
  Date:   2018-12-26 (Wed, 26 Dec 2018)

  Changed paths:
    M CHANGES.rst
    A ZConfig/components/logger/formatter.py
    M ZConfig/components/logger/handlers.py
    M ZConfig/components/logger/handlers.xml
    A ZConfig/components/logger/tests/support.py
    A ZConfig/components/logger/tests/test_formatter.py
    M ZConfig/components/logger/tests/test_logger.py
    M setup.py

  Log Message:
  -----------
  support styles for log formatters

- pull in python3 style implementations; extend with '$' variant using
  safe_substitute instead of substitute

- add default python2 formatter that provides style support

- push validation of format string into handler (formatter)
  construction, since validation can no longer be performed only on the
  basis of the format value

- deal with 3rd-party formatter factories by clobbering the
  formatMessage and usesTime methods based on the selected style when
  not "classic"; for python2 we also take over the format method, else
  our formatMessage would not be used

- refactor: move formatter validation & construction to new
  ZConfig.components.logger.formatter module


  Commit: 07a0d0aeb25922037e772dc3b2fc7b809f336bfe
      https://github.com/zopefoundation/ZConfig/commit/07a0d0aeb25922037e772dc3b2fc7b809f336bfe
  Author: Fred Drake <fred at fdrake.net>
  Date:   2018-12-29 (Sat, 29 Dec 2018)

  Changed paths:
    M CHANGES.rst
    A ZConfig/components/logger/formatter.py
    M ZConfig/components/logger/handlers.py
    M ZConfig/components/logger/handlers.xml
    A ZConfig/components/logger/tests/support.py
    A ZConfig/components/logger/tests/test_formatter.py
    M ZConfig/components/logger/tests/test_logger.py
    M setup.py

  Log Message:
  -----------
  Merge pull request #60 from zopefoundation/fd-log-formatter-style

support styles for log formatters


Compare: https://github.com/zopefoundation/ZConfig/compare/b25ad1e37a0c...07a0d0aeb259
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the checkins mailing list