Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-colorlog for openSUSE:Factory 
checked in at 2021-03-10 08:56:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-colorlog (Old)
 and      /work/SRC/openSUSE:Factory/.python-colorlog.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-colorlog"

Wed Mar 10 08:56:55 2021 rev:8 rq:877830 version:4.7.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-colorlog/python-colorlog.changes  
2020-09-16 19:35:45.298581312 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-colorlog.new.2378/python-colorlog.changes    
    2021-03-10 08:58:29.446965498 +0100
@@ -1,0 +2,6 @@
+Mon Mar  8 22:36:19 UTC 2021 - Dirk M??ller <[email protected]>
+
+- update to 4.7.2:
+  * no upstream changes available 
+
+-------------------------------------------------------------------

Old:
----
  colorlog-4.2.1.tar.gz

New:
----
  colorlog-4.7.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-colorlog.spec ++++++
--- /var/tmp/diff_new_pack.Fu0WO7/_old  2021-03-10 08:58:29.902965970 +0100
+++ /var/tmp/diff_new_pack.Fu0WO7/_new  2021-03-10 08:58:29.902965970 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-colorlog
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-colorlog
-Version:        4.2.1
+Version:        4.7.2
 Release:        0
 Summary:        Log formatting with colors
 License:        MIT

++++++ colorlog-4.2.1.tar.gz -> colorlog-4.7.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/MANIFEST.in 
new/colorlog-4.7.2/MANIFEST.in
--- old/colorlog-4.2.1/MANIFEST.in      2020-01-02 11:11:35.000000000 +0100
+++ new/colorlog-4.7.2/MANIFEST.in      2021-01-14 13:47:39.000000000 +0100
@@ -1,4 +1,5 @@
-include README.md
+global-exclude *.py[co]
+recursive-include colorlog/tests/ *.py *.ini
+recursive-include doc/ *.py *.png
 include LICENSE
-include colorlog/tests/test_config.ini
-graft doc
+include README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/PKG-INFO new/colorlog-4.7.2/PKG-INFO
--- old/colorlog-4.2.1/PKG-INFO 2020-07-23 17:34:07.402216000 +0200
+++ new/colorlog-4.7.2/PKG-INFO 2021-01-14 13:47:40.983046000 +0100
@@ -1,23 +1,23 @@
 Metadata-Version: 2.1
 Name: colorlog
-Version: 4.2.1
+Version: 4.7.2
 Summary: Log formatting with colors!
 Home-page: https://github.com/borntyping/python-colorlog
 Author: Sam Clements
 Author-email: [email protected]
 License: MIT License
-Description: 
-        # Log formatting with colors!
+Description: Log formatting with colors!
+        ===========================
         
-        
[![](https://img.shields.io/pypi/v/colorlog.svg)](https://warehouse.python.org/project/colorlog/)
-        
[![](https://img.shields.io/pypi/l/colorlog.svg)](https://warehouse.python.org/project/colorlog/)
+        
[![](https://img.shields.io/pypi/v/colorlog.svg)](https://pypi.org/project/colorlog/)
+        
[![](https://img.shields.io/pypi/l/colorlog.svg)](https://pypi.org/project/colorlog/)
         
[![](https://img.shields.io/travis/borntyping/python-colorlog/master.svg)](https://travis-ci.org/borntyping/python-colorlog)
         
         `colorlog.ColoredFormatter` is a formatter for use with Python's 
`logging`
         module that outputs records using terminal colors.
         
         * [Source on GitHub](https://github.com/borntyping/python-colorlog)
-        * [Packages on PyPI](https://pypi.python.org/pypi/colorlog)
+        * [Packages on PyPI](https://pypi.org/pypi/colorlog/)
         * [Builds on Travis 
CI](https://travis-ci.org/borntyping/python-colorlog)
         
         Installation
@@ -104,8 +104,7 @@
         )
         ```
         
-        Using `secondary_log_colors`
-        ------------------------------
+        ### Using `secondary_log_colors`
         
         Secondary log colors are a way to have more than one color that is 
selected
         based on the log level. Each key in `secondary_log_colors` adds an 
attribute
@@ -130,8 +129,7 @@
         )
         ```
         
-        With [`dictConfig`][dictConfig]
-        -------------------------------
+        ### With [`dictConfig`][dictConfig]
         
         ```python
         logging.config.dictConfig({
@@ -146,8 +144,7 @@
         
         A full example dictionary can be found in `tests/test_colorlog.py`.
         
-        With [`fileConfig`][fileConfig]
-        -------------------------------
+        ### With [`fileConfig`][fileConfig]
         
         ```ini
         ...
@@ -166,8 +163,7 @@
         
         A full example configuration can be found in `tests/test_config.ini`.
         
-        With custom log levels
-        ----------------------
+        ### With custom log levels
         
         ColoredFormatter will work with custom log levels added with
         [`logging.addLevelName`][addLevelName]:
@@ -186,7 +182,7 @@
         ```
         
         Compatibility
-        =============
+        -------------
         
         colorlog works on Python 2.6 and above, including Python 3.
         
@@ -194,13 +190,30 @@
         automatically be included when installing `colorlog` on windows.
         
         Tests
-        =====
+        -----
         
         Tests similar to the above examples are found in 
`tests/test_colorlog.py`.
         
         [`tox`][tox] will run the tests under all compatible python versions.
         
         
+        Status
+        ------
+        
+        colorlog is in maintainance mode. I try and ensure bugfixes are 
published,
+        but compatibility with Python 2.6+ and Python 3+ makes this a 
difficult 
+        codebase to add features to. Any changes that might break backwards
+        compatibility for existing users will not be considered.
+        
+        Alternatives
+        ------------
+        
+        There are some more modern libraries for improving Python logging you 
may
+        find useful.
+        
+        - [structlog]
+        - [jsonlog]
+        
         Projects using colorlog
         -----------------------
         
@@ -212,7 +225,7 @@
         Licence
         -------
         
-        Copyright (c) 2012 Sam Clements <[email protected]>
+        Copyright (c) 2012-2020 Sam Clements <[email protected]>
         
         Permission is hereby granted, free of charge, to any person obtaining 
a copy of
         this software and associated documentation files (the "Software"), to 
deal in
@@ -233,7 +246,7 @@
         
         [dictConfig]: 
http://docs.python.org/3/library/logging.config.html#logging.config.dictConfig
         [fileConfig]: 
http://docs.python.org/3/library/logging.config.html#logging.config.fileConfig
-        [addLevelName]: 
https://docs.python.org/3/library/logging.html#logging.addLevelNam[addLevelN]e
+        [addLevelName]: 
https://docs.python.org/3/library/logging.html#logging.addLevelName
         [Formatter]: 
http://docs.python.org/3/library/logging.html#logging.Formatter
         [tox]: http://tox.readthedocs.org/
         [Arch AUR]: https://aur.archlinux.org/packages/python-colorlog/
@@ -246,9 +259,11 @@
         [Fedora packaging scripts]: https://github.com/bartv/python-colorlog
         [Gentoo]: https://packages.gentoo.org/packages/dev-python/colorlog
         [OpenSuse]: 
http://rpm.pbone.net/index.php3?stat=3&search=python-colorlog&srodzaj=3
-        [Pythran]: http://pythonhosted.org/pythran/DEVGUIDE.html
+        [Pythran]: https://github.com/serge-sans-paille/pythran
         [Ubuntu]: https://launchpad.net/python-colorlog
         [zenlog]: https://github.com/ManufacturaInd/python-zenlog
+        [structlog]: https://www.structlog.org/en/stable/
+        [jsonlog]: https://github.com/borntyping/jsonlog
         
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/README.md new/colorlog-4.7.2/README.md
--- old/colorlog-4.2.1/README.md        2020-01-02 11:11:35.000000000 +0100
+++ new/colorlog-4.7.2/README.md        2021-01-14 13:47:39.000000000 +0100
@@ -1,15 +1,15 @@
+Log formatting with colors!
+===========================
 
-# Log formatting with colors!
-
-[![](https://img.shields.io/pypi/v/colorlog.svg)](https://warehouse.python.org/project/colorlog/)
-[![](https://img.shields.io/pypi/l/colorlog.svg)](https://warehouse.python.org/project/colorlog/)
+[![](https://img.shields.io/pypi/v/colorlog.svg)](https://pypi.org/project/colorlog/)
+[![](https://img.shields.io/pypi/l/colorlog.svg)](https://pypi.org/project/colorlog/)
 
[![](https://img.shields.io/travis/borntyping/python-colorlog/master.svg)](https://travis-ci.org/borntyping/python-colorlog)
 
 `colorlog.ColoredFormatter` is a formatter for use with Python's `logging`
 module that outputs records using terminal colors.
 
 * [Source on GitHub](https://github.com/borntyping/python-colorlog)
-* [Packages on PyPI](https://pypi.python.org/pypi/colorlog)
+* [Packages on PyPI](https://pypi.org/pypi/colorlog/)
 * [Builds on Travis CI](https://travis-ci.org/borntyping/python-colorlog)
 
 Installation
@@ -96,8 +96,7 @@
 )
 ```
 
-Using `secondary_log_colors`
-------------------------------
+### Using `secondary_log_colors`
 
 Secondary log colors are a way to have more than one color that is selected
 based on the log level. Each key in `secondary_log_colors` adds an attribute
@@ -122,8 +121,7 @@
 )
 ```
 
-With [`dictConfig`][dictConfig]
--------------------------------
+### With [`dictConfig`][dictConfig]
 
 ```python
 logging.config.dictConfig({
@@ -138,8 +136,7 @@
 
 A full example dictionary can be found in `tests/test_colorlog.py`.
 
-With [`fileConfig`][fileConfig]
--------------------------------
+### With [`fileConfig`][fileConfig]
 
 ```ini
 ...
@@ -158,8 +155,7 @@
 
 A full example configuration can be found in `tests/test_config.ini`.
 
-With custom log levels
-----------------------
+### With custom log levels
 
 ColoredFormatter will work with custom log levels added with
 [`logging.addLevelName`][addLevelName]:
@@ -178,7 +174,7 @@
 ```
 
 Compatibility
-=============
+-------------
 
 colorlog works on Python 2.6 and above, including Python 3.
 
@@ -186,13 +182,30 @@
 automatically be included when installing `colorlog` on windows.
 
 Tests
-=====
+-----
 
 Tests similar to the above examples are found in `tests/test_colorlog.py`.
 
 [`tox`][tox] will run the tests under all compatible python versions.
 
 
+Status
+------
+
+colorlog is in maintainance mode. I try and ensure bugfixes are published,
+but compatibility with Python 2.6+ and Python 3+ makes this a difficult 
+codebase to add features to. Any changes that might break backwards
+compatibility for existing users will not be considered.
+
+Alternatives
+------------
+
+There are some more modern libraries for improving Python logging you may
+find useful.
+
+- [structlog]
+- [jsonlog]
+
 Projects using colorlog
 -----------------------
 
@@ -204,7 +217,7 @@
 Licence
 -------
 
-Copyright (c) 2012 Sam Clements <[email protected]>
+Copyright (c) 2012-2020 Sam Clements <[email protected]>
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
@@ -225,7 +238,7 @@
 
 [dictConfig]: 
http://docs.python.org/3/library/logging.config.html#logging.config.dictConfig
 [fileConfig]: 
http://docs.python.org/3/library/logging.config.html#logging.config.fileConfig
-[addLevelName]: 
https://docs.python.org/3/library/logging.html#logging.addLevelNam[addLevelN]e
+[addLevelName]: 
https://docs.python.org/3/library/logging.html#logging.addLevelName
 [Formatter]: http://docs.python.org/3/library/logging.html#logging.Formatter
 [tox]: http://tox.readthedocs.org/
 [Arch AUR]: https://aur.archlinux.org/packages/python-colorlog/
@@ -238,6 +251,8 @@
 [Fedora packaging scripts]: https://github.com/bartv/python-colorlog
 [Gentoo]: https://packages.gentoo.org/packages/dev-python/colorlog
 [OpenSuse]: 
http://rpm.pbone.net/index.php3?stat=3&search=python-colorlog&srodzaj=3
-[Pythran]: http://pythonhosted.org/pythran/DEVGUIDE.html
+[Pythran]: https://github.com/serge-sans-paille/pythran
 [Ubuntu]: https://launchpad.net/python-colorlog
 [zenlog]: https://github.com/ManufacturaInd/python-zenlog
+[structlog]: https://www.structlog.org/en/stable/
+[jsonlog]: https://github.com/borntyping/jsonlog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/colorlog/escape_codes.py 
new/colorlog-4.7.2/colorlog/escape_codes.py
--- old/colorlog-4.2.1/colorlog/escape_codes.py 2020-01-02 11:11:35.000000000 
+0100
+++ new/colorlog-4.7.2/colorlog/escape_codes.py 2021-01-14 13:47:39.000000000 
+0100
@@ -5,13 +5,15 @@
 
 Uses colorama as an optional dependency to support color on Windows
 """
+import sys
 
 try:
     import colorama
 except ImportError:
     pass
 else:
-    colorama.init()
+    if sys.platform == "win32":
+        colorama.init(strip=False)
 
 __all__ = ('escape_codes', 'parse_colors')
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/colorlog/logging.py 
new/colorlog-4.7.2/colorlog/logging.py
--- old/colorlog-4.2.1/colorlog/logging.py      2020-01-02 11:11:35.000000000 
+0100
+++ new/colorlog-4.7.2/colorlog/logging.py      2021-01-14 13:47:39.000000000 
+0100
@@ -10,7 +10,8 @@
 BASIC_FORMAT = "%(log_color)s%(levelname)s%(reset)s:%(name)s:%(message)s"
 
 
-def basicConfig(**kwargs):
+def basicConfig(style='%', log_colors=None, reset=True,
+                secondary_log_colors=None, **kwargs):
     """Call ``logging.basicConfig`` and override the formatter it creates."""
     logging.basicConfig(**kwargs)
     logging._acquireLock()
@@ -19,7 +20,12 @@
         stream.setFormatter(
             ColoredFormatter(
                 fmt=kwargs.get('format', BASIC_FORMAT),
-                datefmt=kwargs.get('datefmt', None)))
+                datefmt=kwargs.get('datefmt', None),
+                style=style,
+                log_colors=log_colors,
+                reset=reset,
+                secondary_log_colors=secondary_log_colors
+            ))
     finally:
         logging._releaseLock()
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/colorlog.egg-info/PKG-INFO 
new/colorlog-4.7.2/colorlog.egg-info/PKG-INFO
--- old/colorlog-4.2.1/colorlog.egg-info/PKG-INFO       2020-07-23 
17:34:07.000000000 +0200
+++ new/colorlog-4.7.2/colorlog.egg-info/PKG-INFO       2021-01-14 
13:47:40.000000000 +0100
@@ -1,23 +1,23 @@
 Metadata-Version: 2.1
 Name: colorlog
-Version: 4.2.1
+Version: 4.7.2
 Summary: Log formatting with colors!
 Home-page: https://github.com/borntyping/python-colorlog
 Author: Sam Clements
 Author-email: [email protected]
 License: MIT License
-Description: 
-        # Log formatting with colors!
+Description: Log formatting with colors!
+        ===========================
         
-        
[![](https://img.shields.io/pypi/v/colorlog.svg)](https://warehouse.python.org/project/colorlog/)
-        
[![](https://img.shields.io/pypi/l/colorlog.svg)](https://warehouse.python.org/project/colorlog/)
+        
[![](https://img.shields.io/pypi/v/colorlog.svg)](https://pypi.org/project/colorlog/)
+        
[![](https://img.shields.io/pypi/l/colorlog.svg)](https://pypi.org/project/colorlog/)
         
[![](https://img.shields.io/travis/borntyping/python-colorlog/master.svg)](https://travis-ci.org/borntyping/python-colorlog)
         
         `colorlog.ColoredFormatter` is a formatter for use with Python's 
`logging`
         module that outputs records using terminal colors.
         
         * [Source on GitHub](https://github.com/borntyping/python-colorlog)
-        * [Packages on PyPI](https://pypi.python.org/pypi/colorlog)
+        * [Packages on PyPI](https://pypi.org/pypi/colorlog/)
         * [Builds on Travis 
CI](https://travis-ci.org/borntyping/python-colorlog)
         
         Installation
@@ -104,8 +104,7 @@
         )
         ```
         
-        Using `secondary_log_colors`
-        ------------------------------
+        ### Using `secondary_log_colors`
         
         Secondary log colors are a way to have more than one color that is 
selected
         based on the log level. Each key in `secondary_log_colors` adds an 
attribute
@@ -130,8 +129,7 @@
         )
         ```
         
-        With [`dictConfig`][dictConfig]
-        -------------------------------
+        ### With [`dictConfig`][dictConfig]
         
         ```python
         logging.config.dictConfig({
@@ -146,8 +144,7 @@
         
         A full example dictionary can be found in `tests/test_colorlog.py`.
         
-        With [`fileConfig`][fileConfig]
-        -------------------------------
+        ### With [`fileConfig`][fileConfig]
         
         ```ini
         ...
@@ -166,8 +163,7 @@
         
         A full example configuration can be found in `tests/test_config.ini`.
         
-        With custom log levels
-        ----------------------
+        ### With custom log levels
         
         ColoredFormatter will work with custom log levels added with
         [`logging.addLevelName`][addLevelName]:
@@ -186,7 +182,7 @@
         ```
         
         Compatibility
-        =============
+        -------------
         
         colorlog works on Python 2.6 and above, including Python 3.
         
@@ -194,13 +190,30 @@
         automatically be included when installing `colorlog` on windows.
         
         Tests
-        =====
+        -----
         
         Tests similar to the above examples are found in 
`tests/test_colorlog.py`.
         
         [`tox`][tox] will run the tests under all compatible python versions.
         
         
+        Status
+        ------
+        
+        colorlog is in maintainance mode. I try and ensure bugfixes are 
published,
+        but compatibility with Python 2.6+ and Python 3+ makes this a 
difficult 
+        codebase to add features to. Any changes that might break backwards
+        compatibility for existing users will not be considered.
+        
+        Alternatives
+        ------------
+        
+        There are some more modern libraries for improving Python logging you 
may
+        find useful.
+        
+        - [structlog]
+        - [jsonlog]
+        
         Projects using colorlog
         -----------------------
         
@@ -212,7 +225,7 @@
         Licence
         -------
         
-        Copyright (c) 2012 Sam Clements <[email protected]>
+        Copyright (c) 2012-2020 Sam Clements <[email protected]>
         
         Permission is hereby granted, free of charge, to any person obtaining 
a copy of
         this software and associated documentation files (the "Software"), to 
deal in
@@ -233,7 +246,7 @@
         
         [dictConfig]: 
http://docs.python.org/3/library/logging.config.html#logging.config.dictConfig
         [fileConfig]: 
http://docs.python.org/3/library/logging.config.html#logging.config.fileConfig
-        [addLevelName]: 
https://docs.python.org/3/library/logging.html#logging.addLevelNam[addLevelN]e
+        [addLevelName]: 
https://docs.python.org/3/library/logging.html#logging.addLevelName
         [Formatter]: 
http://docs.python.org/3/library/logging.html#logging.Formatter
         [tox]: http://tox.readthedocs.org/
         [Arch AUR]: https://aur.archlinux.org/packages/python-colorlog/
@@ -246,9 +259,11 @@
         [Fedora packaging scripts]: https://github.com/bartv/python-colorlog
         [Gentoo]: https://packages.gentoo.org/packages/dev-python/colorlog
         [OpenSuse]: 
http://rpm.pbone.net/index.php3?stat=3&search=python-colorlog&srodzaj=3
-        [Pythran]: http://pythonhosted.org/pythran/DEVGUIDE.html
+        [Pythran]: https://github.com/serge-sans-paille/pythran
         [Ubuntu]: https://launchpad.net/python-colorlog
         [zenlog]: https://github.com/ManufacturaInd/python-zenlog
+        [structlog]: https://www.structlog.org/en/stable/
+        [jsonlog]: https://github.com/borntyping/jsonlog
         
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/colorlog.egg-info/SOURCES.txt 
new/colorlog-4.7.2/colorlog.egg-info/SOURCES.txt
--- old/colorlog-4.2.1/colorlog.egg-info/SOURCES.txt    2020-07-23 
17:34:07.000000000 +0200
+++ new/colorlog-4.7.2/colorlog.egg-info/SOURCES.txt    2021-01-14 
13:47:40.000000000 +0100
@@ -22,4 +22,5 @@
 colorlog/tests/test_logging.py
 doc/custom_level.py
 doc/example.png
-doc/example.py
\ No newline at end of file
+doc/example.py
+doc/yaml_example.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/doc/example.py 
new/colorlog-4.7.2/doc/example.py
--- old/colorlog-4.2.1/doc/example.py   2020-01-02 11:11:35.000000000 +0100
+++ new/colorlog-4.7.2/doc/example.py   2021-01-14 13:47:39.000000000 +0100
@@ -12,10 +12,10 @@
         datefmt=None,
         reset=True,
         log_colors={
-            'DEBUG':    'cyan',
-            'INFO':     'green',
-            'WARNING':  'yellow',
-            'ERROR':    'red',
+            'DEBUG': 'cyan',
+            'INFO': 'green',
+            'WARNING': 'yellow',
+            'ERROR': 'red',
             'CRITICAL': 'red',
         }
     )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/doc/yaml_example.py 
new/colorlog-4.7.2/doc/yaml_example.py
--- old/colorlog-4.2.1/doc/yaml_example.py      1970-01-01 01:00:00.000000000 
+0100
+++ new/colorlog-4.7.2/doc/yaml_example.py      2021-01-14 13:47:39.000000000 
+0100
@@ -0,0 +1,53 @@
+"""
+Based on an example provided by Ricardo Reis.
+https://github.com/ricardo-reis-1970/colorlog-YAML
+
+This configures the `logging` module from a YAML file, and provides specific
+configuration for the loggers named 'application' and 'example'.
+"""
+
+import logging.config
+import pathlib
+
+import yaml
+
+
+def config():
+    """
+    Configure `logging` from a YAML file. You might adjust this function to
+    provide the configuration path as an argument.
+    """
+    path = pathlib.Path(__file__).with_suffix('.yaml')
+    logging.config.dictConfig(yaml.safe_load(path.read_text()))
+
+
+if __name__ == '__main__':
+    config()
+
+    root = logging.getLogger()
+    root.debug("Root logs debug example")
+    root.info("Root logs written to console without colours")
+    root.warning("Root logs warning")
+    root.error("Root logs error")
+    root.critical("Root logs critical")
+
+    unknown = logging.getLogger('unknown')
+    unknown.debug("Unknown logs debug example")
+    unknown.info("Unknown logs propagated to root logger")
+    unknown.warning("Unknown logs warning")
+    unknown.error("Unknown logs error")
+    unknown.critical("Unknown logs critical")
+
+    application = logging.getLogger('application')
+    application.debug("Application logs debug filtered by log level")
+    application.info("Application logs written to console and file")
+    application.warning("Application logs not propagated to the root logger")
+    application.error("Application logs error example")
+    application.critical("Application logs critical example")
+
+    example = logging.getLogger('example')
+    example.debug("Example logs debug filtered by log level")
+    example.info("Example logs configured to write to file")
+    example.warning("Example logs propagated to the root logger")
+    example.error("Example logs error example")
+    example.critical("Example logs critical example")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/colorlog-4.2.1/setup.py new/colorlog-4.7.2/setup.py
--- old/colorlog-4.2.1/setup.py 2020-07-23 17:33:58.000000000 +0200
+++ new/colorlog-4.7.2/setup.py 2021-01-14 13:47:39.000000000 +0100
@@ -2,7 +2,7 @@
 
 setup(
     name='colorlog',
-    version='4.2.1',
+    version='4.7.2',
 
     description='Log formatting with colors!',
     long_description=open('README.md').read(),
@@ -14,8 +14,7 @@
     license='MIT License',
 
     packages=[
-        'colorlog',
-        'colorlog.tests'
+        'colorlog'
     ],
 
     setup_requires=[

Reply via email to