Skip to main content

A simple module to debug Python code

Project description

DEBUGSYS

DEBUGSYS is a custom implementation of a debugging system designed to provide developers with an efficient way to manage and log messages during the development process. It offers a modular logging system, allowing for easy integration and management of multiple loggers.

Table of Contents

Getting Started

This project provides a comprehensive logging system that allows developers to track and manage logs efficiently. It supports multiple loggers, each configurable with its own output file.

Prerequisites

Before you begin, ensure you have the following software installed:

Python 3.12 or above

Installation

Follow these steps to set up your development environment:

# Clone the repository
git clone https://github.com/Flyns157/debug_sys.git

# Navigate to the project directory
cd debug_sys

# Install dependencies
pip install -r debug_sys/requirements.txt

Usage

To use DEBUGSYS, you can create instances of LogManager and manage your loggers effectively. Here's a basic example:

from debug_sys.log_manager import LogManager


# Initialize the log manager
log_manager = LogManager()

# Add a new logger
log_manager.add_logger('example_logger', 'example.log')

# Log a message
log_manager.log('example_logger', 'INFO', 'This is an informational message.')

# Print the last 5 log messages
log_manager.print_logs('example_logger', limit=5)

Additional Usage Examples

Clear Logs: You can clear the logs of a specific logger.

log_manager.clear_logs('example_logger', archive=True, saving_folder='archive/')

Accessing Loggers: You can access loggers directly via their names.

log_manager.EXAMPLE_LOGGER.log('ERROR', 'An error occurred.')

Features

Multiple Loggers: Manage multiple loggers with different configurations. Log Management: Add, clear, and print logs easily. Customizable Logging: Set file names and content size limits for logs.

Archiving: Option to archive logs before clearing them.

Contributing

We welcome contributions to DEBUGSYS! If you would like to contribute, please follow these steps:

Fork the repository Create your feature branch (git checkout -b feature/NewFeature) Commit your changes (git commit -m 'Add some NewFeature') Push to the branch (git push origin feature/NewFeature) Open a pull request Please ensure your code adheres to the project's coding standards and includes appropriate tests.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

CUISSET Mattéo - matteo.cuisset@gmail.com

Project Link: GitHub Repository Link

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

debug_sys-3.4.6.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

debug_sys-3.4.6-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file debug_sys-3.4.6.tar.gz.

File metadata

  • Download URL: debug_sys-3.4.6.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for debug_sys-3.4.6.tar.gz
Algorithm Hash digest
SHA256 f7a3bfbe247045d18e9dfed605ffe3043c85bc8f03f265034d8b1ea52b3da07b
MD5 1a6688fd3fd803f969fe0813f4c98df4
BLAKE2b-256 10523c54dd310c06fb02ae48eedbdfacff2b1826ffc0f1ecf6610b850a95efc1

See more details on using hashes here.

File details

Details for the file debug_sys-3.4.6-py3-none-any.whl.

File metadata

  • Download URL: debug_sys-3.4.6-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for debug_sys-3.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 41a4cb589d7650274ce41bc7a9c31e341e35b7efd027a01a536b04c818940e7d
MD5 cfc9188efdd849c23e960a73578d692c
BLAKE2b-256 871f13808c6cadd83606fb6b3e582ee393f1ed3d2e6fc7ad4263cd9d67ce330b

See more details on using hashes here.

Supported by

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