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.4.0.tar.gz (13.4 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.4.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tubelight-1.4.0.tar.gz
Algorithm Hash digest
SHA256 431b0ec86344fa6d20535a6b1d26afb0b7679006d79ff4c0e89b71e810ea8a27
MD5 07c9ffa10c8557cf99206b225a23ce79
BLAKE2b-256 c36ca4ad739e65f01e9e79498886c28a619d6908d3bfd408d8770dd3cbfe0bf8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tubelight-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea02dca55fc1e9ce1bc1ae08759fa135ed5853f0a5d482bba94d304b32f0b2cf
MD5 6f8716fdbe831509b2476d20a4b22163
BLAKE2b-256 ef80d224f16e3559c989ebe9a63db4cf49e2561769f0e9fd3b63bb5b7620bfc1

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