diff --git a/devel/py-logzero/Makefile b/devel/py-logzero/Makefile new file mode 100644 index 000000000000..2e1e46a28625 --- /dev/null +++ b/devel/py-logzero/Makefile @@ -0,0 +1,22 @@ +PORTNAME= logzero +DISTVERSIONPREFIX= v +DISTVERSION= 1.7.0 +CATEGORIES= devel +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ports@nicandneal.net +COMMENT= Robust and effective logging for Python + +LICENSE= MIT + +USES= python +USE_PYTHON= distutils autoplist + +USE_GITHUB= yes +GH_ACCOUNT= metachris +GH_PROJECT= logzero + +do-build: + # Nothing to build. + +.include diff --git a/devel/py-logzero/distinfo b/devel/py-logzero/distinfo new file mode 100644 index 000000000000..e73dcef96a33 --- /dev/null +++ b/devel/py-logzero/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1618302616 +SHA256 (metachris-logzero-v1.7.0_GH0.tar.gz) = ff5d91754ebd6e822553dbfa8179e7ed3d4de3ba3505d03394d7db2bdab515ce +SIZE (metachris-logzero-v1.7.0_GH0.tar.gz) = 1394169 diff --git a/devel/py-logzero/pkg-descr b/devel/py-logzero/pkg-descr new file mode 100644 index 000000000000..d07e324d8904 --- /dev/null +++ b/devel/py-logzero/pkg-descr @@ -0,0 +1,15 @@ +Robust and effective logging for Python 2 and 3. + +- Easy logging to console and/or (rotating) file. +- Provides a fully configured standard Python logger object. +- Pretty formatting, including level-specific colors in the console. +- Windows color output supported by colorama +- Robust against str/bytes encoding problems, works with all kinds of character encodings and special characters. +- Multiple loggers can write to the same logfile (also across multiple Python files). +- Global default logger with logzero.logger and custom loggers with logzero.setup_logger(..). +- Compatible with Python 2 and 3. +- All contained in a single file. +- Licensed under the MIT license. +- Heavily inspired by the Tornado web framework. + +WWW: https://github.com/metachris/logzero