# Log Lens

A native, read-only Linux log dashboard by Dustin Pressley / Pressley Services.
Python, GTK 4 and libadwaita; MIT license. Fedora version 1.0.2; other distro installers retain 1.0.0.

Follow the current boot's readable system journal, user session, kernel,
authentication processes or package-manager processes. Search messages and service
names, filter severity, select an entry for full details, pause the display, or
export visible buffered entries to JSONL. Previous boot is a snapshot and requires
a persistent journal. Authentication/package filters use known process identifiers;
they are convenient starting points, not complete audit reports.

Open regular text log files, including traditional syslog/auth/package logs. File
append, rotation and truncation are followed. Text entries have unknown severity;
the displayed time is when each line was observed. Partial lines wait for a newline.

## Install

Download the matching single-file `.run` installer and run it as your regular user:

    sh log-lens-1.0.2-fedora.run

Replace `fedora` with `ubuntu`, `debian`, `kali`, `linuxmint`, `arch`, or `opensuse`.
The complete application, icon and GNOME extension are embedded. The installer
uses your distro's repositories and sudo only if native libraries are missing.
It requires Python 3.10+, PyGObject with Cairo, GTK 4.10+, libadwaita 1.5+ and
systemd's journalctl. Libraries remain shared OS packages, so a first installation
may need internet. Once those libraries exist, installation and operation are
offline. Arch installs dependencies with `pacman -Syu`, a full system upgrade.
Older distributions with older GTK/adwaita are not supported by these builds.

    sh installer.run --check
    sh installer.run --no-deps
    sh installer.run --extract=./extracted
    sh installer.run --uninstall

Files install beneath ~/.local/share and ~/.local/bin, with an Applications launcher.
GNOME 45–51 receives a Logs button in the top-right Quick Settings menu. A newly
installed extension may need one sign out/sign in. GNOME extensions must be enabled.
Other desktop environments use the Applications launcher, without a GNOME menu.
GNOME integration is verified on GNOME 50 (Fedora), 46 (Ubuntu) and 48 (Debian).

## Access and privacy

The app reads as your normal user; it never escalates journal or file reads,
changes group membership, removes logs, vacuums journals, or restarts services.
Restricted sources remain restricted. An administrator can deliberately grant
system-journal access by adding an account to `systemd-journal`, followed by
signing out and back in. That permission exposes potentially sensitive system logs.
Protected text files can still be inaccessible. User logs work where the user
journal exists. A missing previous boot is not an application error.

Only 2,000 entries stay in the displayed buffer, plus a bounded incoming queue of
2,400 events. Pause freezes the display while this queue fills. Under overload,
the oldest queued events are dropped and a loss counter is shown. Messages over
32 KiB are shortened with a detail notice; journal records over 1 MiB are skipped
with a notice. This is an inspection tool, not a complete log archive.

Summary warning/error counts describe the current buffer. Incoming rate averages
the last five seconds and excludes historical journal entries. Export saves the
visible filtered entries at the moment you click Export. Review logs before
sharing: messages can contain personal information. No telemetry, networking,
automatic export, background daemon, or upload is included. Readers stop on close.

## Keyboard and CLI

Ctrl+F search; Ctrl+P pause; Ctrl+R reload; Ctrl+O open file; Ctrl+E export;
Ctrl+Shift+C copy selected entry; Ctrl+Q quit. Scrolling up disables Follow newest.

    ~/.local/bin/log-lens --json --source=kernel
    ~/.local/bin/log-lens --demo

`--json` produces a bounded current-boot snapshot; `--demo` shows explicitly labeled
illustrative data for previews. Fresh regular launches use real logs. Close any existing Log Lens window before
launching `--demo`; an already running instance receives subsequent launch requests.

## Build and validation

    /usr/bin/python3 build.py
    /usr/bin/python3 -m pytest tests/test_backend.py tests/test_distributables.py
    /usr/bin/python3 packaging/validate_release.py

Builds produce an identical app payload inside seven separately checksummed distro
installers, a standalone zipapp, source archive and GNOME extension archive.
The release validation gate requires live-log GTK tests, exact installer/payload
hashes, uninstall evidence, screenshots and sequential VM cleanup. See validation/
for local results. VM scripts download only one official image at a time and delete
it and its temporary SSH keys after collecting results. No physical host disks are
attached to test VMs.

## Fedora window-layout update 1.0.2

Fedora receives an adaptive layout for left/right tiling, smaller windows and
scaled displays. Wide panels reflow; narrow drive/source selectors remain
accessible. Live collectors and data formats are unchanged. The Fedora build
is validated at widths 480, 640, 768, 960 and 1180 pixels, including short windows
and actual GNOME left/right tiling. The current distribution-wide release applies the responsive layout to all seven installers.


## Distribution-wide update

The current release targets Fedora, Ubuntu, Debian, Kali Linux, Linux Mint, Arch Linux and openSUSE Leap. Every distro has its own installer with native package dependencies. Responsive layouts and GNOME menu integration are shared across the builds. GNOME provides the Quick Settings buttons; other desktops receive their standard Applications-menu launcher.

The cross-distribution release suite installs, runs, exercises live data and responsive layouts, verifies the desktop launcher, and uninstalls all four dashboards on each VM before deleting that VM and moving to the next distribution. See the release validation report for tested versions and hardware limits. Virtual GPUs may expose no GPU/VRAM usage counters; those values stay unavailable rather than being fabricated. Website updates and publishing are a later stage.


### Current target baselines

The distribution-wide release uses separate x86-64 installers for Fedora, Ubuntu, Debian, Kali, Linux Mint, Arch and openSUSE Leap. Validation targets Fedora **44 and 45 separately**, Ubuntu 24.04 LTS, Debian 13, Kali 2026.3, Linux Mint 22.3 Cinnamon, Arch rolling and openSUSE Leap 16.0. Other releases are not automatically claimed tested. The same Fedora installer is exercised on both Fedora versions.

Use the installer whose suffix matches your distribution, for example `-fedora.run`, `-ubuntu.run` or `-linuxmint.run`. GNOME supplies the Quick Settings button (or Network Lens’s existing Wi-Fi submenu action); other desktops receive native Applications-menu launchers. A new GNOME extension may require one sign-out/sign-in. The per-app all-distro bundle includes the current test report and exact installer checksums. The full release matrix covers 28 unique files / 32 installer-VM combinations.
