Skip to content

vinnytherobot/logscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogScope

LogScope is a Python CLI that parses plain-text and JSON logs and renders them in a readable, filterable, live terminal view.

CI Coverage PyPI License

Installation

Supported package managers and flows:

# pip (from PyPI)
pip install logscope

# pip (local editable)
pip install -e .

# Poetry (project contributors)
poetry install

Quickstart

Minimal executable example:

# 1) Install
pip install logscope

# 2) Run against a file
logscope ./examples/sample.log

# 3) Follow logs in real time with pulse mode
logscope ./examples/docker.log --follow --pulse

Useful follow-up commands:

# Filter by severity
logscope ./examples/api.log --min-level WARN

# Search + regex
logscope ./examples/api.log --search "timeout|refused" --regex

# Export rendered output
logscope ./examples/api.log --export-html report.html

API Reference

Public package entry points:

  • logscope.cli:app -> Typer command group exposed as logscope.
  • logscope.parser.parse_line() -> parses a single line into LogEntry.
  • logscope.viewer.stream_logs() -> standard stream renderer.
  • logscope.viewer.run_dashboard() -> dashboard mode renderer.
  • logscope.viewer.run_pulse_stream() -> pulse mode renderer.

Developer documentation:

Roadmap

  • Stabilize release automation for PyPI publishing and changelog generation.
  • Expand test coverage for follow mode and HTML export flows.
  • Add user-facing docs for custom theme packs and plugin-like format adapters.

Contributing

Contribution guide is in CONTRIBUTING.md.

License

MIT. See LICENSE.