Help & Guides¶
- Introduction to Logging in Python
- Switching from standard
loggingtologuru- Fundamental differences between
loggingandloguru - Replacing
getLogger()function - Replacing
Loggerobjects - Replacing
Handler,FilterandFormatterobjects - Replacing
%style formatting of messages - Replacing
exc_infoargument - Replacing
extraargument andLoggerAdapterobjects - Replacing
isEnabledFor()method - Replacing
addLevelName()andgetLevelName()functions - Replacing
basicConfig()anddictConfig()functions - Making things work with Pytest and caplog
- Fundamental differences between
- Code snippets and recipes for
loguru- Changing the level of an existing handler
- Sending and receiving log messages across network or processes
- Resolving
UnicodeEncodeErrorand 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,stderrandwarnings - Circumventing modules whose
__name__value is absent - Interoperability with
tqdmiterations - Using Loguru’s
loggerwithin a Cython module - Creating independent loggers with separate set of handlers
- Compatibility with
multiprocessingusingenqueueargument