Comprehensive HTML logging with rich content support
Project description
LogTeeHTML
A comprehensive Python logging package that creates beautiful HTML logs with rich content support.
Overview
LogTeeHTML automatically captures your program's output and creates interactive HTML logs with a professional dark theme, making it easy to review and share your results.
Features
- 📊 Multiple output formats - HTML, JSON, and TXT files
- 🎨 Dark theme with responsive design
- 🔗 Interactive navigation - Fixed sidebar with clickable table of contents
- ⏰ Timestamp tooltips - Hover to see exact timing
- 📷 Image embedding - Embed PIL images directly
- 🌈 Rich integration - Tables, progress bars, syntax highlighting
- 📱 Stream capture - Automatically logs
print()and errors
Quick Start
from logteehtml import LogTeeHTML
# Create logger
logger = LogTeeHTML("my_experiment")
# Start a stage
logger.start("Data Processing")
print("Loading data...") # Automatically captured
# Add custom content
logger.inject_html("<h3>Results Summary</h3>", "Summary")
# Add images
from PIL import Image
img = Image.new('RGB', (100, 100), 'blue')
logger.inject_image(img, "Test Plot")
This generates:
my_experiment.html- Interactive log with dark thememy_experiment.json- Structured datamy_experiment.txt- Plain text version
Installation
pip install logteehtml
Dependencies:
- Pillow (required)
- Rich (optional, for advanced formatting)
Documentation
See REQUIREMENTS.md for detailed technical specifications.
Note: This project was created entirely by VS Code's AI Agent (GitHub Copilot) as a test case for AI-driven software development.
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 logteehtml-0.1.0.tar.gz.
File metadata
- Download URL: logteehtml-0.1.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0d9d1022f70a6712e62c55592eda5e0d827a9e68654b55c15356790a5c807c6
|
|
| MD5 |
4d42f578b1d7cd97da9910ad0d3ce110
|
|
| BLAKE2b-256 |
c2d8990cf0f4666017c16738eebd5b5b926582bee2cfced4f8a612e100295168
|
File details
Details for the file logteehtml-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logteehtml-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a8fa9706ee997eebd99dfa8de56443c7071f29f066fd341b81f31745c74ed1
|
|
| MD5 |
8c39cfc57347e1328822aecf5bbe174d
|
|
| BLAKE2b-256 |
b42577a22c0bf5ea2574ace80a8e90b725349fac4bf6e1f874945297c0b7a20b
|