No project description provided
Project description
hard-log
Petit logger console basé sur Rich, avec archivage automatique dans un fichier texte.
Fonctionnalités
- Affichage coloré par niveau (
BOOT,INFO,DEBUG,WARN,ERROR,SUCCESS). - Formatage horodaté en une ligne.
- Archivage automatique dans
logs/log.txt.
Installation
Avec Poetry :
-
Installer les dépendances :
poetry install
Utilisation
Exemple minimal :
from hard_log.soft_log import SoftLog
log = SoftLog()
log.log("BOOT", "Initialisation...")
log.log("INFO", "Scan en cours")
log.log("WARN", "Réponse lente")
log.log("ERROR", "Échec")
log.log("SUCCESS", "Terminé")
Sortie
Les messages s’affichent en couleur dans le terminal et sont archivés dans :
Configuration
Le constructeur accepte un dossier et un nom de fichier :
log = SoftLog(path="logs/", file_name="log.txt")
Licence
MIT License Copyright (c) 2026 Sebastien TADIELLO
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hard_log-0.1.0.tar.gz.
File metadata
- Download URL: hard_log-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c1dc24f8aaa6f927a7c98ad250c89a7e67b8d659ec258e0acaa41d90f9b3ad3
|
|
| MD5 |
a193010af1ec2319044a09d2e0bfdd63
|
|
| BLAKE2b-256 |
9f40b693bc634be9686c53c5636091fa64944eaaeb2f8156d5afd15170d57d29
|
File details
Details for the file hard_log-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hard_log-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
372bfae7ab84bc2dd404fbe38f09864d48c25acd3db84a3f36f155aaacbd393b
|
|
| MD5 |
27690d9306e53495707e8c06a398a68b
|
|
| BLAKE2b-256 |
f3b2c26a5f85dbe71a62d9b596ed162e45c3010c6e96efb797109703f7b0b72a
|