Tagged articles
Loguru
12 articles · Page 1 of 1
After a chaotic production incident, this article compares Python’s built‑in logging, Loguru, and Logfire, detailing their configurations, strengths, weaknesses, and real‑world use cases—from simple scripts to high‑throughput APIs—while offering migration steps and common pitfalls to help you choose the right solution.
LogfireLoggingLoguru
0 likes · 17 min read

After a chaotic production alert, the author, a decade‑long backend developer, compares Python’s built‑in logging, Loguru, and Logfire, showing their configurations, strengths, pitfalls, and best‑fit scenarios—from simple cron jobs to high‑throughput API gateways—so you can choose the right tool for reliable, observable logging.
BackendLogfireLogging
0 likes · 15 min read

This article explains why Python logging often feels cumbersome, demonstrates how Loguru provides a minimal‑configuration alternative with powerful features, offers a reusable wrapper for the standard logging module, and presents practical examples and best‑practice guidelines for effective logging in backend applications.
BackendBest PracticesDebugging
0 likes · 9 min read

This article explains why traditional Python logging is cumbersome, demonstrates the verbose boilerplate required, and then shows how the Loguru library can replace it with a minimal, powerful setup that includes automatic exception handling, colored output, log rotation, async support, and structured logging for both web and script applications.
ConfigurationDebuggingLogging
0 likes · 9 min read

The article explains why Python logging often feels cumbersome, demonstrates the verbose boilerplate of the standard logging module, and then shows how Loguru provides a minimal one‑line configuration, powerful features, and practical examples that turn logging into an efficient debugging tool.
BackendDebuggingLogging
0 likes · 9 min read

This guide walks you through configuring Loguru for dev, test, and prod environments, adding dynamic log levels, colorized console output, file rotation, JSON serialization, remote extensions, and packaging the logger as a reusable Python module.
CLIJSONLogging
0 likes · 7 min read

This guide introduces Loguru, a modern Python logging library that replaces the standard logging module with a concise API, automatic coloring, thread‑safe operation, file rotation, JSON output, and extensive configuration options, providing clear examples, advanced settings, testing integration, and best‑practice project structures.
DebuggingLoggingLoguru
0 likes · 7 min read

This article explains how to design and implement a high‑performance, configurable core executor for API automation testing, covering dependency installation, executor class creation, logging integration, parallel execution, report generation with Allure, and practical code examples for Python developers.
API testingAllureLoguru
0 likes · 7 min read

This article demonstrates how to wrap MySQL database connections, create reusable assertion functions, parameterize test cases, validate JSON responses, and integrate logging with Loguru to build a maintainable and efficient Pytest‑based API automation framework.
Database TestingLogurujson assertion
0 likes · 6 min read

This article introduces Loguru, a third‑party Python logging library, explains why it simplifies logging compared to the standard logging module, outlines its key features such as out‑of‑the‑box setup, async safety, lazy evaluation, and file rotation, and provides practical code examples for quick integration into scripts, libraries, and frameworks.
DebuggingLoggingLoguru
0 likes · 11 min read

This article introduces the Loguru library as an elegant, concise alternative to Python's built‑in logging, demonstrating installation, basic usage, file configuration, formatting, filtering, rotation, retention, compression, serialization, and advanced exception tracing with code examples.
Exception HandlingLoggingLoguru
0 likes · 17 min read

This article introduces Loguru, a powerful third‑party Python logging library, explains why it simplifies logging compared to the standard logging module, outlines its key features such as out‑of‑the‑box setup, asynchronous support, lazy evaluation, and structured logging, and provides practical code examples and integration tips for scripts, libraries, and Flask applications.
LibraryLoggingLoguru
0 likes · 12 min read
