Skip to main content

Fancy defaults for the awesome loguru logs!

Project description

Auto-Loguru

Fancy defaults for the awesome loguru logs!

Simple!

Install:

pip install as_loguru


Use in Python script:

from as_loguru import logger


This is a wrapper for the marvlous loguru logging package. Below is the information from the original project repo.

Loguru logo

Pypi version Python versions Documentation Build status Coverage Code quality License

Loguru logo


Loguru is a library which aims to bring enjoyable logging in Python.

Did you ever feel lazy about configuring a logger and used print() instead?... I did, yet logging is fundamental to every application and eases the process of debugging. Using Loguru you have no excuse not to use logging from the start, this is as simple as

from loguru import logger

logger.info("I'm logging now!")

Also, this library is intended to make Python logging less painful by adding a bunch of useful functionalities that solve caveats of the standard loggers. Using logs in your application should be an automatism, Loguru tries to make it both pleasant and powerful.

Installation

pip install loguru

Features

  • Ready to use out of the box without boilerplate
  • [No Handler, no Formatter, no Filter: one function to rule them all][ready to use out of the box without boilerplate]
  • [Easier file logging with rotation / retention / compression][ready to use out of the box without boilerplate]
  • [Modern string formatting using braces style][ready to use out of the box without boilerplate]
  • [Exceptions catching within threads or main][ready to use out of the box without boilerplate]
  • [Pretty logging with colors][ready to use out of the box without boilerplate]
  • [Asynchronous, Thread-safe, Multiprocess-safe][ready to use out of the box without boilerplate]
  • [Fully descriptive exceptions][ready to use out of the box without boilerplate]
  • [Structured logging as needed][ready to use out of the box without boilerplate]
  • [Lazy evaluation of expensive functions][ready to use out of the box without boilerplate]
  • [Customizable levels][ready to use out of the box without boilerplate]
  • [Better datetime handling][ready to use out of the box without boilerplate]
  • [Suitable for scripts and libraries][ready to use out of the box without boilerplate]
  • `Entirely compatible with standard loggin

[Ready to use out of the box without boilerplate]:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

AutoSysLoguru-0.4.0.tar.gz (11.0 kB view hashes)

Uploaded Source

Built Distribution

AutoSysLoguru-0.4.0-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page