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
Metadata
Release files for hard-log 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hard_log-0.1.0.tar.gz | 3.9 kB | Without provenance | Details for hard_log-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hard_log-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for hard_log-0.1.0-py3-none-any.whl |
Total release size: 8.9 kB
Release files / hard_log-0.1.0.tar.gz
| Download URL | hard_log-0.1.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c1dc24f8aaa6f927a7c98ad250c89a7e67b8d659ec258e0acaa41d90f9b3ad3
|
|
BLAKE2b-256 checksum How to use checksums |
9f40b693bc634be9686c53c5636091fa64944eaaeb2f8156d5afd15170d57d29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure
|
Release files / hard_log-0.1.0-py3-none-any.whl
| Download URL | hard_log-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
372bfae7ab84bc2dd404fbe38f09864d48c25acd3db84a3f36f155aaacbd393b
|
|
BLAKE2b-256 checksum How to use checksums |
f3b2c26a5f85dbe71a62d9b596ed162e45c3010c6e96efb797109703f7b0b72a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.14.3 Linux/6.14.0-1017-azure
|
Security for hard-log 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.