loguru
0.4.1
  • Overview
  • API Reference
  • Help & Guides
    • Introduction to Logging in Python
    • Switching from standard logging to loguru
    • Code snippets and recipes for loguru
  • Project Information
loguru
  • Docs »
  • Help & Guides

Help & Guides¶

  • Introduction to Logging in Python
  • Switching from standard logging to loguru
    • Fundamental differences between logging and loguru
    • Replacing getLogger() function
    • Replacing Logger objects
    • Replacing Handler, Filter and Formatter objects
    • Replacing % style formatting of messages
    • Replacing exc_info argument
    • Replacing extra argument and LoggerAdapter objects
    • Replacing isEnabledFor() method
    • Replacing addLevelName() and getLevelName() functions
    • Replacing basicConfig() and dictConfig() functions
    • Making things work with Pytest and caplog
  • Code snippets and recipes for loguru
    • Changing the level of an existing handler
    • Sending and receiving log messages across network or processes
    • Resolving UnicodeEncodeError and other encoding issues
    • Logging entry and exit of functions with a decorator
    • Using logging function based on custom added levels
    • Preserving an opt() parameter for the whole module
    • Dynamically formatting messages to properly align values with padding
    • Customizing the formatting of exceptions
    • Capturing standard stdout, stderr and warnings
    • Circumventing modules whose __name__ value is absent
    • Interoperability with tqdm iterations
    • Using Loguru’s logger within a Cython module
    • Creating independent loggers with separate set of handlers
    • Compatibility with multiprocessing using enqueue argument
CLICK
Next Previous

Revision 1e253f10.

Built with Sphinx using a theme provided by Read the Docs.