Contents

loguru 0.7.2

0

Python logging made (stupidly) simple

Python logging made (stupidly) simple

Stars: 19692, Watchers: 19692, Forks: 693, Open Issues: 202

The Delgan/loguru repo was created 7 years ago and the last code push was 6 days ago.
The project is extremely popular with a mindblowing 19692 github stars!

How to Install loguru

You can install loguru using pip

pip install loguru

or add it to a project with poetry

poetry add loguru

Package Details

Author
Delgan
License
MIT license
Homepage
https://github.com/Delgan/loguru
PyPi:
https://pypi.org/project/loguru/
Documentation:
https://loguru.readthedocs.io/en/stable/index.html
GitHub Repo:
https://github.com/Delgan/loguru

Classifiers

  • System/Logging
No  loguru  pypi packages just yet.

Errors

A list of common loguru errors.

Code Examples

Here are some loguru code examples and snippets.

GitHub Issues

The loguru package has 202 open issues on GitHub

  • Pytest's caplog fixture with multiprocessing
  • if I use @logger.catch for all the functions will the log file close automatically if error is encountered in any one of the functions
  • How can I add the logs for start and end of every function and the time for which a function runs if I am using @logger.catch before every function
  • [Question] Why do string formatting happen for messages that will not be logged?
  • [Question] Where are the functions that parse module, and function information per log message?
  • Question: Inject metainformation about a log record
  • how to rotate file on every run?
  • Where should I use "disable"?
  • Question: is there an option not to truncate collection types in better error tracing?
  • How to prevent other packages from changing my logger?
  • Adding a way to perform automatic logging of variables "a la icecream"? [feature request]
  • Monitoring and centralized logging integration strategy

See more issues on GitHub

Related Packages & Articles

graypy 2.1.0

Python logging handlers that send messages in the Graylog Extended Log Format (GELF).