Skip to main content

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

Metadata

Release files for debug-sys 3.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for debug-sys 3.4.6
File Size Uploaded
debug_sys-3.4.6.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for debug-sys 3.4.6
File Interpreter ABI Platform
debug_sys-3.4.6-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / debug_sys-3.4.6.tar.gz

Download URL debug_sys-3.4.6.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a3bfbe247045d18e9dfed605ffe3043c85bc8f03f265034d8b1ea52b3da07b
BLAKE2b-256 checksum
How to use checksums
10523c54dd310c06fb02ae48eedbdfacff2b1826ffc0f1ecf6610b850a95efc1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / debug_sys-3.4.6-py3-none-any.whl

Download URL debug_sys-3.4.6-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41a4cb589d7650274ce41bc7a9c31e341e35b7efd027a01a536b04c818940e7d
BLAKE2b-256 checksum
How to use checksums
871f13808c6cadd83606fb6b3e582ee393f1ed3d2e6fc7ad4263cd9d67ce330b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

3.4.6 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page