Metadata-Version: 2.4
Name: rkt_logger_lib
Version: 2.0.3
Summary: RootKit custom logging Lib
Author-email: RootKit <rootkit@rootkit-lab.org>
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: rkt_tool_lib

# rkt_logger_lib

Advanced Logging overlay implementing the Singleton pattern.

## Features
- **Centralized Management**: Manages multiple loggers and handlers from a single instance.
- **Dual Output**: Easy configuration for file logging, stream (console) logging, or both.
- **Filtered Streams**:
    - `stdout`: INFO, DEBUG, WARNING
    - `stderr`: ERROR, CRITICAL
- **Automatic Organization**: Creates and manages log directories and daily log files.

## Usage

```python
from logger import Logger

log = Logger(caller_class="MyApp")

# Add a message
log.add(caller="MyApp", message="Application started", level="INFO")

# Create a specialized logger for a sub-module
log.set_logger(caller_class="DatabaseModule", level="DEBUG")
log.add(caller="DatabaseModule", message="Connection established", level="DEBUG")
```
