Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump loguru from 0.2.5 to 0.4.1 #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps loguru from 0.2.5 to 0.4.1.

Release notes

Sourced from loguru's releases.

0.4.1

  • Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate.
  • Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process (#195, thanks @gazpachoking).
  • Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is (#198).
  • Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors (#197).

0.4.0

  • Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them (#171).
  • Add a way to filter logs using one level per module in the form of a dict passed to the filter argument (#148).
  • Add type hints to annotate the public methods using a .pyi stub file (#162).
  • Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers (#72).
  • Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier (#128).
  • Add the level name as the first argument of namedtuple returned by the .level() method.
  • Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method.
  • Rename the logger.configure() keyword argument patch to patcher so it better matches the signature of logger.patch().
  • Fix incompatibility with multiprocessing on Windows by entirely refactoring the internal structure of the logger so it can be inherited by child processes along with added handlers (#108).
  • Fix AttributeError while using a file sink on some distributions (like Alpine Linux) missing the os.getxattr and os.setxattr functions (#158, thanks @joshgordon).
  • Fix values wrongly displayed for keyword arguments during exception formatting with diagnose=True (#144).
  • Fix logging messages wrongly chopped off at the end while using standard logging.Handler sinks with .opt(raw=True) (#136).
  • Fix potential errors during rotation if destination file exists due to large resolution clock on Windows (#179).
  • Fix an error using a filter function "by name" while receiving a log with record["name"] equals to None.
  • Fix incorrect record displayed while handling errors (if catch=True) occurring because of non-picklable objects (if enqueue=True).
  • Prevent hypothetical ImportError if a Python installation is missing the built-in distutils module (#118).
  • Raise TypeError instead of ValueError when a logger method is called with argument of invalid type.
  • Raise ValueError if the built-in format() and filter() functions are respectively used as format and filter arguments of the add() method. This helps the user to understand the problem, as such a mistake can quite easily occur (#177).
  • Remove inheritance of some record dict attributes to str (for "level", "file", "thread" and "process").
  • Give a name to the worker thread used when enqueue=True (#174, thanks @t-mart).

0.3.2

  • Fix exception during import when executing Python with -s and -S flags causing site.USER_SITE to be missing (#114).

0.3.1

  • Fix retention and rotation issues when file sink initiliazed with delay=True (#113).
  • Fix "sec" no longer recognized as a valid duration unit for file rotation and retention arguments.
  • Ensure stack from the caller is displayed while formatting exception of a function decorated with @logger.catch when backtrace=False.
  • Modify datetime used to automatically rename conflicting file when rotating (it happens if file already exists because "{time}" not presents in filename) so it's based on the file creation time rather than the current time.

0.3.0

  • Remove all dependencies previously needed by loguru (on Windows platform, it solely remains colorama and win32-setctime).
  • Add a new logger.patch() method which can be used to modify the record dict on-the-fly before it's being sent to the handlers.
  • Modify behavior of sink option backtrace so it only extends the stacktrace upward, the display of variables values is now controlled with the new diagnose argument (#49).
  • Change behavior of rotation option in file sinks: it is now based on the file creation time rather than the current time, note that proper support may differ depending on your platform (#58).
  • Raise errors on unknowns color tags rather than silently ignoring them (#57).
  • Add the possibility to auto-close color tags by using </> (e.g. <yellow>message</>).
  • Add coloration of exception traceback even if diagnose and backtrace options are False.
  • Add a way to limit the depth of formatted exceptions traceback by setting the conventional sys.tracebacklimit variable (#77).
  • Add __repr__ value to the logger for convenient debugging (#84).
  • Remove colors tags mixing directives (e.g. <red,blue>) for simplification.
  • Make the record["exception"] attribute unpackable as a (type, value, traceback) tuple.
... (truncated)
Changelog

Sourced from loguru's changelog.

0.4.1 (2020-01-19)

  • Deprecate the ansi parameter of .opt() in favor of colors which is a name more appropriate.
  • Prevent unrelated files and directories to be incorrectly collected thus causing errors during the retention process (#195, thanks @gazpachoking).
  • Strip color markups contained in record["message"] when logging with .opt(ansi=True) instead of leaving them as is (#198).
  • Ignore color markups contained in *args and **kwargs when logging with .opt(ansi=True), leave them as is instead of trying to use them to colorize the message which could cause undesirable errors (#197).

0.4.0 (2019-12-02)

  • Add support for coroutine functions used as sinks and add the new logger.complete() asynchronous method to await them (#171).
  • Add a way to filter logs using one level per module in the form of a dict passed to the filter argument (#148).
  • Add type hints to annotate the public methods using a .pyi stub file (#162).
  • Add support for copy.deepcopy() of the logger allowing multiple independent loggers with separate set of handlers (#72).
  • Add the possibility to convert datetime to UTC before formatting (in logs and filenames) by adding "!UTC" at the end of the time format specifier (#128).
  • Add the level name as the first argument of namedtuple returned by the .level() method.
  • Remove class objects from the list of supported sinks and restrict usage of **kwargs in .add() to file sink only. User is in charge of instantiating sink and wrapping additional keyword arguments if needed, before passing it to the .add() method.
  • Rename the logger.configure() keyword argument patch to patcher so it better matches the signature of logger.patch().
  • Fix incompatibility with multiprocessing on Windows by entirely refactoring the internal structure of the logger so it can be inherited by child processes along with added handlers (#108).
  • Fix AttributeError while using a file sink on some distributions (like Alpine Linux) missing the os.getxattr and os.setxattr functions (#158, thanks @joshgordon).
  • Fix values wrongly displayed for keyword arguments during exception formatting with diagnose=True (#144).
  • Fix logging messages wrongly chopped off at the end while using standard logging.Handler sinks with .opt(raw=True) (#136).
  • Fix potential errors during rotation if destination file exists due to large resolution clock on Windows (#179).
  • Fix an error using a filter function "by name" while receiving a log with record["name"] equals to None.
  • Fix incorrect record displayed while handling errors (if catch=True) occurring because of non-picklable objects (if enqueue=True).
  • Prevent hypothetical ImportError if a Python installation is missing the built-in distutils module (#118).
  • Raise TypeError instead of ValueError when a logger method is called with argument of invalid type.
  • Raise ValueError if the built-in format() and filter() functions are respectively used as format and filter arguments of the add() method. This helps the user to understand the problem, as such a mistake can quite easily occur (#177).
  • Remove inheritance of some record dict attributes to str (for "level", "file", "thread" and "process").
  • Give a name to the worker thread used when enqueue=True (#174, thanks @t-mart).

0.3.2 (2019-07-21)

  • Fix exception during import when executing Python with -s and -S flags causing site.USER_SITE to be missing (#114).

0.3.1 (2019-07-13)

  • Fix retention and rotation issues when file sink initiliazed with delay=True (#113).
  • Fix "sec" no longer recognized as a valid duration unit for file rotation and retention arguments.
  • Ensure stack from the caller is displayed while formatting exception of a function decorated with @logger.catch when backtrace=False.
  • Modify datetime used to automatically rename conflicting file when rotating (it happens if file already exists because "{time}" not presents in filename) so it's based on the file creation time rather than the current time.

0.3.0 (2019-06-29)

  • Remove all dependencies previously needed by loguru (on Windows platform, it solely remains colorama and win32-setctime).
  • Add a new logger.patch() method which can be used to modify the record dict on-the-fly before it's being sent to the handlers.
... (truncated)
Commits
  • 1e253f1 Bump version to 0.4.1
  • 1ebb5db Fix some filesink retention unit tests on Windows
  • 097299d Rearrange imports using "isort" and "flake8"
  • be9fbfa Optimize "opt(colors=True)" to avoid re-parsing handler format
  • 2e82aa9 Deprecate "ansi" parameter of "opt()" in favor of "colors"
  • 2616942 Improve handling of "ansi" option in messages (#197, #198)
  • 3b66fb5 Fix false-positives and errors during retention process (#196)
  • 2403ec2 Add return type for Logger.configure (#200)
  • d4851c4 Correct recipe for custom level due to 'opt()' not chainable (#192)
  • da9e51e Correct an inaccuracy in docs to add a new level
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because this dependency is pre-1.0.0.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [loguru](https://github.com/Delgan/loguru) from 0.2.5 to 0.4.1.
- [Release notes](https://github.com/Delgan/loguru/releases)
- [Changelog](https://github.com/Delgan/loguru/blob/master/CHANGELOG.rst)
- [Commits](Delgan/loguru@0.2.5...0.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants