Skip to main content

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 :

  1. 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)

Source distribution for hard-log 0.1.0
File Size Uploaded
hard_log-0.1.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hard-log 0.1.0
File Interpreter ABI Platform
hard_log-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 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