All Versions
13
Latest Version
Avg Release Cycle
115 days
Latest Release
1136 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v1.7.0 Changes
March 17, 2021- ๐ฒ Export loglevels directly (you can use eg.
logzero.DEBUG
instead oflogging.DEBUG
) - 0๏ธโฃ
setup_default_logger
usebackupCount
- โก๏ธ Update dependencies
- PRs: (386)[https://github.com/metachris/logzero/pull/386]
- ๐ฒ Export loglevels directly (you can use eg.
-
v1.6.3 Changes
November 15, 2020- 0๏ธโฃ JSON logging with UTF-8 enabled by default (PR 357)
-
v1.6.0 Changes
October 29, 2020- ๐ฒ JSON logging support ([PR 344][])
- Ability to easily change colors ([#82][])
- Allow creating a root logger ([#342][])
- ๐ Bugfix: file logging with lower loglevel than stream ([PR 338][])
- โ Running tests with Python up to 3.9
- โก๏ธ Dependency updates
-
v1.5.0 Changes
March 07, 2018logzero.syslog(..)
(PR 83 <https://github.com/metachris/logzero/pull/84>
_)
-
v1.4.0 Changes
March 02, 2018- ๐ Allow Disabling stderr Output (
PR 83 <https://github.com/metachris/logzero/pull/83>
_)
- ๐ Allow Disabling stderr Output (
-
v1.3.0 Changes
July 19, 2017- ๐ Color output now works in Windows (supported by colorama)
-
v1.2.1 Changes
July 09, 2017- Logfiles with custom loglevels (eg. stream handler with DEBUG and file handler with ERROR).
-
v1.2.0 Changes
July 05, 2017- ๐ง Way better API for configuring the default logger with
logzero.loglevel(..)
,logzero.logfile(..)
, etc. - ๐ฒ Built-in rotating logfile support.
.. code-block:: python
import logging import logzero from logzero import logger # This log message goes to the console logger.debug("hello") # Set a minimum log level logzero.loglevel(logging.INFO) # Set a logfile (all future log messages are also saved there) logzero.logfile("/tmp/logfile.log") # Set a rotating logfile (replaces the previous logfile handler) logzero.logfile("/tmp/rotating-logfile.log", maxBytes=1000000, backupCount=3) # Disable logging to a file logzero.logfile(None) # Set a custom formatter formatter = logging.Formatter('%(name)s - %(asctime)-15s - %(levelname)s: %(message)s'); logzero.formatter(formatter) # Log some variables logger.info("var1: %s, var2: %s", var1, var2)
- ๐ง Way better API for configuring the default logger with
-
v1.1.2 Changes
July 04, 2017- ๐ Better reconfiguration of handlers, doesn't remove custom handlers anymore
-
v1.1.0 Changes
July 03, 2017- 0๏ธโฃ Global default logger instance (logzero.logger)
- 0๏ธโฃ Ability to reconfigure the default logger with (logzero.setup_default_logger(..))
- โ More tests
- ๐ More documentation