Home Projects Tutorials Contact
Back to Projects
لاگ گیری حرفه ای با پایتون
Featured Project

لاگ گیری حرفه ای با پایتون Professional Logging with Python

2025/03/27

Technologies Used

Python

Project Description

پرو لاگینگ یک بستهٔ پیشرفته و کاملاً قابل تنظیم برای ثبت لاگ در پروژه‌های پایتون است که به توسعه‌دهندگان امکان می‌دهد فرآیندهای برنامهٔ خود را در یک فایل لاگ و در صورت تمایل در یک پایگاه داده ثبت کنند. این بسته از ویژگی‌هایی مانند چرخش لاگ، سطوح مختلف لاگ، ثبت لاگ به‌صورت JSON و ذخیره‌سازی در پایگاه داده پشتیبانی می‌کند.

ویژگی‌ها:

سطوح لاگ: DEBUG، INFO، WARNING، ERROR، CRITICAL​

چرخش لاگ: پشتیبانی از چرخش لاگ بر اساس اندازهٔ فایل یا تاریخ​

فرمت JSON: امکان ثبت پیام‌های لاگ به‌صورت JSON​

ذخیره‌سازی در پایگاه داده: ذخیرهٔ لاگ‌ها در پایگاه دادهٔ SQLite برای مدیریت و تحلیل آسان‌تر​

خروجی کنسول: چاپ پیام‌های لاگ در کنسول​

قابلیت تنظیم: امکان پیکربندی نام فایل لاگ، سطوح لاگ، تنظیمات چرخش و موارد دیگر

برای مشاهده جزییات بیشتر و دیدن روش استفاده میتوانید با لینک گیت هاب پروژه به مخزن این پروژه بروید.
Pro Logging is an advanced and highly customizable logging package for Python projects that allows developers to record their application processes in a log file and, if desired, in a database. This package supports features such as log rotation, different log levels, JSON formatted logging, and database storage.

Features:

Log Levels: DEBUG, INFO, WARNING, ERROR, CRITICAL​

Log Rotation: Supports log rotation based on file size or date​

JSON Format: Ability to log messages in JSON format​

Database Storage: Stores logs in an SQLite database for easier management and analysis​

Console Output: Prints log messages to the console​

Configurability: Allows configuration of log file name, log levels, rotation settings, and more

For more details and to see how to use it, you can visit the project's GitHub repository via the project link.