commit python-logzero for openSUSE:Factory
Hello community, here is the log from the commit of package python-logzero for openSUSE:Factory checked in at 2018-01-01 22:30:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-logzero (Old) and /work/SRC/openSUSE:Factory/.python-logzero.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-logzero" Mon Jan 1 22:30:52 2018 rev:3 rq:560880 version:1.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-logzero/python-logzero.changes 2017-08-16 16:11:13.186387494 +0200 +++ /work/SRC/openSUSE:Factory/.python-logzero.new/python-logzero.changes 2018-01-01 22:31:01.252324823 +0100 @@ -1,0 +2,6 @@ +Fri Sep 15 09:06:58 UTC 2017 - sebix+novell.com@sebix.at + +- update to 1.3.1 + * logzero.logfile() doc fix (#41) + +------------------------------------------------------------------- Old: ---- logzero-1.3.0.tar.gz New: ---- logzero-1.3.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-logzero.spec ++++++ --- /var/tmp/diff_new_pack.kuvByB/_old 2018-01-01 22:31:02.351957688 +0100 +++ /var/tmp/diff_new_pack.kuvByB/_new 2018-01-01 22:31:02.355956353 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-logzero -Version: 1.3.0 +Version: 1.3.1 Release: 0 Summary: A logging module for Python License: MIT ++++++ logzero-1.3.0.tar.gz -> logzero-1.3.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/PKG-INFO new/logzero-1.3.1/PKG-INFO --- old/logzero-1.3.0/PKG-INFO 2017-07-19 14:31:43.000000000 +0200 +++ new/logzero-1.3.1/PKG-INFO 2017-09-14 11:38:45.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: logzero -Version: 1.3.0 +Version: 1.3.1 Summary: Robust and effective logging for Python 2 and 3 Home-page: https://github.com/metachris/logzero Author: Chris Hager @@ -30,7 +30,7 @@ Robust and effective logging for Python 2 and 3. - .. image:: docs/_static/logo-small.png + .. image:: https://raw.githubusercontent.com/metachris/logzero/master/docs/_static/logo... :alt: Logo :width: 300px @@ -54,7 +54,7 @@ * Heavily inspired by the `Tornado web framework`_. - .. image:: docs/_static/demo_output.png + .. image:: https://raw.githubusercontent.com/metachris/logzero/master/docs/_static/demo... :alt: Demo output in color :width: 300px @@ -82,6 +82,21 @@ except Exception as e: logger.exception(e) + + Adding a rotating logfile is that easy: + + .. code-block:: python + + import logzero + from logzero import logger + + # Setup rotating logfile with 3 rotations, each with a maximum filesize of 1MB: + logzero.logfile("/tmp/rotating-logfile.log", maxBytes=1e6, backupCount=3) + + # Log messages + logger.info("This log message goes to the console and the logfile") + + Here are more examples which show how to use logfiles, custom formatters and setting a minimum loglevel: @@ -122,7 +137,7 @@ Installation - ============= + ------------ Install `logzero` with `pip`_: @@ -130,75 +145,38 @@ $ pip install -U logzero + If you don't have `pip`_ installed, this `Python installation guide`_ can guide + you through the process. - Changelog - --------- - - See the changelog here: https://github.com/metachris/logzero/blob/master/HISTORY.rst - - - Future Features & Ideas - ----------------------- - - * Decorator for logging function calls - * Easier usage of custom log handlers (currently works `like this https://logzero.readthedocs.io/en/latest/#adding-custom-handlers-eg-syslogha...`_) - * JSON output (a la 12 factor app) - * Send logs to remote log collector (maybe) - * Structured logging a la https://structlog.readthedocs.io/en/stable/index.html (maybe) - - - TODO - ---- - - * Tests - - * Custom handlers and reconfiguration - * Strange behaviour: py.test with default logger - capturing err does not work if the logger is setup initially in logzero. Only works when setup from the py script. - - - Related Projects - ---------------- - - * https://12factor.net/logs - * Log collectors: fluentd, logstash, etc. - * https://structlog.readthedocs.io/en/stable/why.html - - - Notes: How to release a new version - ----------------------------------- - - via https://cookiecutter-pypackage.readthedocs.io/en/latest/pypi_release_checkli... + You can also install `logzero` from the public `Github repo`_: .. code-block:: console - # Run the tests - py.test - make lint - tox + $ git clone https://github.com/metachris/logzero.git + $ cd logzero + $ python setup.py install - # Update history - vi HISTORY.rst - git add HISTORY.rst - git commit -m "Changelog for upcoming release 0.1.1." + On openSUSE you can install the current version from repos: `python2-logzero https://software.opensuse.org/package/python2-logzero`_, `python3-logzero https://software.opensuse.org/package/python3-logzero`_. In the newest openSUSE release you can install it with zypper: `sudo zypper in python2-logzero`. - # Update version - bumpversion minor - - # Push - git push && git push --tags + .. _pip: https://pip.pypa.io + .. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/ + .. _Github repo: https://github.com/metachris/logzero - Credits + Changelog --------- - This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. + See the changelog here: https://github.com/metachris/logzero/blob/master/HISTORY.rst - .. _Cookiecutter: https://github.com/audreyr/cookiecutter - .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage + Feedback + -------- - .. _pip: https://pip.pypa.io + All kinds of feedback and contributions are welcome. + * `Create an issue https://github.com/metachris/logzero/issues/new`_ + * Create a pull request + * `@metachris https://twitter.com/metachris`_ // chris@linuxuser.at ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/README.rst new/logzero-1.3.1/README.rst --- old/logzero-1.3.0/README.rst 2017-07-19 14:31:28.000000000 +0200 +++ new/logzero-1.3.1/README.rst 2017-09-14 11:38:23.000000000 +0200 @@ -22,7 +22,7 @@ Robust and effective logging for Python 2 and 3. -.. image:: docs/_static/logo-small.png +.. image:: https://raw.githubusercontent.com/metachris/logzero/master/docs/_static/logo... :alt: Logo :width: 300px @@ -46,7 +46,7 @@ * Heavily inspired by the `Tornado web framework`_. -.. image:: docs/_static/demo_output.png +.. image:: https://raw.githubusercontent.com/metachris/logzero/master/docs/_static/demo... :alt: Demo output in color :width: 300px @@ -74,6 +74,21 @@ except Exception as e: logger.exception(e) + +Adding a rotating logfile is that easy: + +.. code-block:: python + + import logzero + from logzero import logger + + # Setup rotating logfile with 3 rotations, each with a maximum filesize of 1MB: + logzero.logfile("/tmp/rotating-logfile.log", maxBytes=1e6, backupCount=3) + + # Log messages + logger.info("This log message goes to the console and the logfile") + + Here are more examples which show how to use logfiles, custom formatters and setting a minimum loglevel: @@ -114,7 +129,7 @@ Installation -============= +------------ Install `logzero` with `pip`_: @@ -122,72 +137,35 @@ $ pip install -U logzero +If you don't have `pip`_ installed, this `Python installation guide`_ can guide +you through the process. -Changelog ---------- - -See the changelog here: https://github.com/metachris/logzero/blob/master/HISTORY.rst - - -Future Features & Ideas ------------------------ - -* Decorator for logging function calls -* Easier usage of custom log handlers (currently works `like this https://logzero.readthedocs.io/en/latest/#adding-custom-handlers-eg-syslogha...`_) -* JSON output (a la 12 factor app) -* Send logs to remote log collector (maybe) -* Structured logging a la https://structlog.readthedocs.io/en/stable/index.html (maybe) - - -TODO ----- - -* Tests - - * Custom handlers and reconfiguration - * Strange behaviour: py.test with default logger - capturing err does not work if the logger is setup initially in logzero. Only works when setup from the py script. - - -Related Projects ----------------- - -* https://12factor.net/logs -* Log collectors: fluentd, logstash, etc. -* https://structlog.readthedocs.io/en/stable/why.html - - -Notes: How to release a new version ------------------------------------ - -via https://cookiecutter-pypackage.readthedocs.io/en/latest/pypi_release_checkli... +You can also install `logzero` from the public `Github repo`_: .. code-block:: console - # Run the tests - py.test - make lint - tox + $ git clone https://github.com/metachris/logzero.git + $ cd logzero + $ python setup.py install - # Update history - vi HISTORY.rst - git add HISTORY.rst - git commit -m "Changelog for upcoming release 0.1.1." +On openSUSE you can install the current version from repos: `python2-logzero https://software.opensuse.org/package/python2-logzero`_, `python3-logzero https://software.opensuse.org/package/python3-logzero`_. In the newest openSUSE release you can install it with zypper: `sudo zypper in python2-logzero`. - # Update version - bumpversion minor - - # Push - git push && git push --tags +.. _pip: https://pip.pypa.io +.. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/ +.. _Github repo: https://github.com/metachris/logzero -Credits +Changelog --------- -This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. +See the changelog here: https://github.com/metachris/logzero/blob/master/HISTORY.rst -.. _Cookiecutter: https://github.com/audreyr/cookiecutter -.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage +Feedback +-------- -.. _pip: https://pip.pypa.io +All kinds of feedback and contributions are welcome. +* `Create an issue https://github.com/metachris/logzero/issues/new`_ +* Create a pull request +* `@metachris https://twitter.com/metachris`_ // chris@linuxuser.at diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/docs/index.rst new/logzero-1.3.1/docs/index.rst --- old/logzero-1.3.0/docs/index.rst 2017-07-19 14:31:28.000000000 +0200 +++ new/logzero-1.3.1/docs/index.rst 2017-09-14 11:38:23.000000000 +0200 @@ -52,6 +52,9 @@ $ cd logzero $ python setup.py install +On openSUSE you can install the current version from repos: `python2-logzero https://software.opensuse.org/package/python2-logzero`_, `python3-logzero https://software.opensuse.org/package/python3-logzero`_. +In the newest openSUSE release you can install it with zypper: ``sudo zypper in python2-logzero``. + .. _pip: https://pip.pypa.io .. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/ .. _Github repo: https://github.com/metachris/logzero @@ -100,6 +103,23 @@ Exception: this is a demo exception +Rotating Logfile +---------------- + +Adding a rotating logfile is that easy: + +.. code-block:: python + + import logzero + from logzero import logger + + # Setup rotating logfile with 3 rotations, each with a maximum filesize of 1MB: + logzero.logfile("/tmp/rotating-logfile.log", maxBytes=1e6, backupCount=3) + + # Log messages + logger.info("This log message goes to the console and the logfile") + + Advanced Usage Examples ----------------------- @@ -288,7 +308,7 @@ Issues, Feedback & Contributions ================================ -All kind of feedback and contributions are welcome. +All kinds of feedback and contributions are welcome. * `Create an issue https://github.com/metachris/logzero/issues/new`_ * Create a pull request diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/logzero/__init__.py new/logzero-1.3.1/logzero/__init__.py --- old/logzero-1.3.0/logzero/__init__.py 2017-07-19 14:31:28.000000000 +0200 +++ new/logzero-1.3.1/logzero/__init__.py 2017-09-14 11:38:23.000000000 +0200 @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """ This helper provides a versatile yet easy to use and beautiful logging setup. -You can use it to log to the console and optionally to a logfile. This propject +You can use it to log to the console and optionally to a logfile. This project is heavily inspired by the Tornado web framework. * https://logzero.readthedocs.io @@ -47,7 +47,7 @@ __author__ = """Chris Hager""" __email__ = 'chris@linuxuser.at' -__version__ = '1.3.0' +__version__ = '1.3.1' # Python 2+3 compatibility settings for logger bytes_type = bytes @@ -100,7 +100,7 @@ logger = setup_logger() logger.info("hello") - :arg string name: Name of the `Logger object https://docs.python.org/2/library/logging.html#logger-objects`_. Multiple calls to ``setup_logger()`` with the same name will always return a reference to the same Logger object. (defaut: ``__name__``) + :arg string name: Name of the `Logger object https://docs.python.org/2/library/logging.html#logger-objects`_. Multiple calls to ``setup_logger()`` with the same name will always return a reference to the same Logger object. (default: ``__name__``) :arg string logfile: If set, also write logs to the specified filename. :arg int level: Minimum `logging-level https://docs.python.org/2/library/logging.html#logging-levels`_ to display (default: ``logging.DEBUG``). :arg Formatter formatter: `Python logging Formatter object https://docs.python.org/2/library/logging.html#formatter-objects`_ (by default uses the internal LogFormatter). @@ -210,7 +210,7 @@ # bytestrings. This is a bit of a hacky place to do this, but # it's worth it since the encoding errors that would otherwise # result are so useless (and tornado is fond of using utf8-encoded - # byte strings whereever possible). + # byte strings wherever possible). record.message = _safe_unicode(message) except Exception as e: record.message = "Bad message (%r): %r" % (e, record.__dict__) @@ -392,7 +392,7 @@ it is closed and renamed to app.log.1, and if files app.log.1, app.log.2, etc. exist, then they are renamed to app.log.2, app.log.3 etc. respectively. - :arg int filename: Filename of the logfile. Set to `None` to disable logging to the logfile. + :arg string filename: Filename of the logfile. Set to `None` to disable logging to the logfile. :arg Formatter formatter: `Python logging Formatter object https://docs.python.org/2/library/logging.html#formatter-objects`_ (by default uses the internal LogFormatter). :arg string mode: mode to open the file with. Defaults to ``a`` :arg int maxBytes: Size of the logfile when rollover should occur. Defaults to 0, rollover never occurs. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/logzero.egg-info/PKG-INFO new/logzero-1.3.1/logzero.egg-info/PKG-INFO --- old/logzero-1.3.0/logzero.egg-info/PKG-INFO 2017-07-19 14:31:43.000000000 +0200 +++ new/logzero-1.3.1/logzero.egg-info/PKG-INFO 2017-09-14 11:38:45.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: logzero -Version: 1.3.0 +Version: 1.3.1 Summary: Robust and effective logging for Python 2 and 3 Home-page: https://github.com/metachris/logzero Author: Chris Hager @@ -30,7 +30,7 @@ Robust and effective logging for Python 2 and 3. - .. image:: docs/_static/logo-small.png + .. image:: https://raw.githubusercontent.com/metachris/logzero/master/docs/_static/logo... :alt: Logo :width: 300px @@ -54,7 +54,7 @@ * Heavily inspired by the `Tornado web framework`_. - .. image:: docs/_static/demo_output.png + .. image:: https://raw.githubusercontent.com/metachris/logzero/master/docs/_static/demo... :alt: Demo output in color :width: 300px @@ -82,6 +82,21 @@ except Exception as e: logger.exception(e) + + Adding a rotating logfile is that easy: + + .. code-block:: python + + import logzero + from logzero import logger + + # Setup rotating logfile with 3 rotations, each with a maximum filesize of 1MB: + logzero.logfile("/tmp/rotating-logfile.log", maxBytes=1e6, backupCount=3) + + # Log messages + logger.info("This log message goes to the console and the logfile") + + Here are more examples which show how to use logfiles, custom formatters and setting a minimum loglevel: @@ -122,7 +137,7 @@ Installation - ============= + ------------ Install `logzero` with `pip`_: @@ -130,75 +145,38 @@ $ pip install -U logzero + If you don't have `pip`_ installed, this `Python installation guide`_ can guide + you through the process. - Changelog - --------- - - See the changelog here: https://github.com/metachris/logzero/blob/master/HISTORY.rst - - - Future Features & Ideas - ----------------------- - - * Decorator for logging function calls - * Easier usage of custom log handlers (currently works `like this https://logzero.readthedocs.io/en/latest/#adding-custom-handlers-eg-syslogha...`_) - * JSON output (a la 12 factor app) - * Send logs to remote log collector (maybe) - * Structured logging a la https://structlog.readthedocs.io/en/stable/index.html (maybe) - - - TODO - ---- - - * Tests - - * Custom handlers and reconfiguration - * Strange behaviour: py.test with default logger - capturing err does not work if the logger is setup initially in logzero. Only works when setup from the py script. - - - Related Projects - ---------------- - - * https://12factor.net/logs - * Log collectors: fluentd, logstash, etc. - * https://structlog.readthedocs.io/en/stable/why.html - - - Notes: How to release a new version - ----------------------------------- - - via https://cookiecutter-pypackage.readthedocs.io/en/latest/pypi_release_checkli... + You can also install `logzero` from the public `Github repo`_: .. code-block:: console - # Run the tests - py.test - make lint - tox + $ git clone https://github.com/metachris/logzero.git + $ cd logzero + $ python setup.py install - # Update history - vi HISTORY.rst - git add HISTORY.rst - git commit -m "Changelog for upcoming release 0.1.1." + On openSUSE you can install the current version from repos: `python2-logzero https://software.opensuse.org/package/python2-logzero`_, `python3-logzero https://software.opensuse.org/package/python3-logzero`_. In the newest openSUSE release you can install it with zypper: `sudo zypper in python2-logzero`. - # Update version - bumpversion minor - - # Push - git push && git push --tags + .. _pip: https://pip.pypa.io + .. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/ + .. _Github repo: https://github.com/metachris/logzero - Credits + Changelog --------- - This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template. + See the changelog here: https://github.com/metachris/logzero/blob/master/HISTORY.rst - .. _Cookiecutter: https://github.com/audreyr/cookiecutter - .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage + Feedback + -------- - .. _pip: https://pip.pypa.io + All kinds of feedback and contributions are welcome. + * `Create an issue https://github.com/metachris/logzero/issues/new`_ + * Create a pull request + * `@metachris https://twitter.com/metachris`_ // chris@linuxuser.at ======= diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/setup.cfg new/logzero-1.3.1/setup.cfg --- old/logzero-1.3.0/setup.cfg 2017-07-19 14:31:43.000000000 +0200 +++ new/logzero-1.3.1/setup.cfg 2017-09-14 11:38:45.000000000 +0200 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.3.0 +current_version = 1.3.1 commit = True tag = True @@ -24,5 +24,4 @@ [egg_info] tag_build = tag_date = 0 -tag_svn_revision = 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/setup.py new/logzero-1.3.1/setup.py --- old/logzero-1.3.0/setup.py 2017-07-19 14:31:28.000000000 +0200 +++ new/logzero-1.3.1/setup.py 2017-09-14 11:38:23.000000000 +0200 @@ -13,7 +13,7 @@ setup( name='logzero', - version='1.3.0', + version='1.3.1', description="Robust and effective logging for Python 2 and 3", long_description=readme + '\n\n' + history, author="Chris Hager", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/logzero-1.3.0/tests/test_new_api.py new/logzero-1.3.1/tests/test_new_api.py --- old/logzero-1.3.0/tests/test_new_api.py 2017-07-19 14:31:28.000000000 +0200 +++ new/logzero-1.3.1/tests/test_new_api.py 2017-09-14 11:38:23.000000000 +0200 @@ -135,7 +135,7 @@ logzero.logger.info("info1") logzero.logger.warn("warn1") - # If setting a loglevel with logzero.loglevel(..) it will not overrite + # If setting a loglevel with logzero.loglevel(..) it will not overwrite # the custom loglevel of the file handler logzero.loglevel(logging.INFO) logzero.logger.info("info2")
participants (1)
-
root@hilbert.suse.de