[Checkins] [zopefoundation/ZConfig] 4ebf82: support styles for log	formatters
    GitHub 
    noreply at github.com
       
    Wed Dec 26 20:27:11 CET 2018
    
    
  
  Branch: refs/heads/fd-log-formatter-style
  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
      **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