Skip to main content

A smart browser-based log viewer for local app logs.

Project description

tubelight

A smart browser-based log viewer for local app logs.

Tubelight turns any local file into a searchable, live-updating table in your browser. It is ideal for development, debugging, and monitoring your app logs without needing tail -f.

Features

  • Render local log files in a polished browser UI
  • Search by message, module, file path, or log contents
  • Filter by level: DEBUG, INFO, SUCCESS, WARNING, ERROR, CRITICAL
  • Date-range filtering with start/end datetime controls
  • Auto-scroll to newest logs when live mode is enabled
  • Click any row to expand raw log details
  • Simple CLI and environment variable configuration
  • Ready for pip packaging and distribution

Installation

Install the package from source or once published on PyPI.

From source

uv run python -m pip install -e .

From PyPI

pip install tubelight

Makefile

A Makefile is included for common workflows:

make build
make publish
make bump-patch
make bump-minor
make bump-major
make set-version VERSION=2.0.0

Quick start

Run the viewer with the default example.log in your current directory:

tubelight

Or point it at a custom log file:

tubelight --log-file /path/to/your/app.log

You can also use the environment variable:

LOG_FILE=/path/to/your/app.log tubelight

Change the port if needed:

tubelight --port 8080

Filter the current view by date range:

tubelight --log-file /path/to/your/app.log

Then use the start/end controls in the browser to restrict the log window to a specific time range.

Open the viewer:

http://127.0.0.1:5111

Packaging for pip

Build source and wheel distributions:

uv run python -m pip install build
uv run python -m build

Publish to PyPI using Twine:

uv run python -m pip install twine
uv run python -m twine upload dist/*

Testing

Run the included smoke tests:

uv run python -m unittest

Project layout

  • tubelight/ — package source
  • tubelight/static/ — browser UI assets
  • app.py — local launch wrapper
  • pyproject.toml — packaging metadata
  • README.md — documentation
  • LICENSE — MIT license

Contributing

Contributions are welcome. Open an issue or send a pull request with:

  • bug reports
  • UX improvements
  • log format support
  • authentication / multi-user features

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tubelight-1.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tubelight-1.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file tubelight-1.1.0.tar.gz.

File metadata

  • Download URL: tubelight-1.1.0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for tubelight-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ace1c425d20bc4f29a8becf3f4c9db480a9596483b8242bf49324bb9108f4fec
MD5 25a1e47814cf61d5df2fb209ee710a40
BLAKE2b-256 03ac6108ce0483102e8bb7fe3000abac9ace38e3350bb883da9c744d9f936359

See more details on using hashes here.

File details

Details for the file tubelight-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tubelight-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for tubelight-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 449d16a5445b1e76e74874182056d69c83f356fa5f91f38f90f4067c3694b4a1
MD5 d28bbfbde36897090776ba94b3bf370f
BLAKE2b-256 581a9c16b89b89b7f3c9de4afcf72c08b27f9c8751ba544d6fbe114c17f73229

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page