QLogg is a cross-platform viewer for large and growing log files, written in Java 21 with SWT. It makes no outbound network connections; its only socket is a loopback endpoint that passes files from a second launch to the running instance.
QLogg is not an editor or a log collector, and it runs no macros, scripts or plugins.
| Area | Summary | Guide |
|---|---|---|
| Large files | Any size and line count; content stays on disk while indexing runs in the background, and the first lines show at once | Opening files |
| Opening | Command line, File > Open, Recent Files and Recently Closed with Open All, Reopen Closed Tab, Favorites, drop on the window, clipboard text (up to 16 MiB, in memory); reload keeps marks and labels | Opening files, Recent files |
| Following | Follow a growing file; reopen by name after truncation, replacement, rotation or a retargeted link, with retries; Keep file closed for writers that rename over the file | Following a growing file |
| Encodings | Detection (BOM, UTF-16, UTF-8, ISO-8859-1 fallback) and a forced charset per file | Opening files |
| Search | Regex or literal, match case, whole word, inverse, combined expressions, in selection, start and end lines, auto-refresh, history, predefined filters, search with the selection, quick find, search all open files, search the files of a folder without opening them (exclude globs, ten kept result sets with pin, F4 steps) |
Search |
| Filtered view | Matches, marks or both, with source line numbers, kept result tabs, context lines and range filters; an overview bar of matches and marks | Search |
| Highlighting | Highlighter sets (regex or text, line or match, capture groups, opacity, variance), automatic set selection, color labels, match highlight, keyword triggers on appended lines; syntax colors for timestamps, levels, stack traces, class names, URLs, keys and strings | Highlighters, Syntax colors |
| Marks | Marks and mark comments, gutter bullets, Marks List | Marks |
| Timestamps | Format detection and user formats, time zones, caret and selection times, offsets, Go to Time, Scroll All Tabs and Time Sync groups, time spread on the overview bar | Timestamps |
| Viewing | Line numbers, go to line and +line:N, Go Back and Go Forward over jumps, block selection, copy with line numbers, save of a selection or the filtered view, text wrap, whitespace and line-end markers, hidden ANSI colors, folding of multi-line entries, font zoom, light, dark and system themes, view color schemes apart from the theme (Light, Dark, nine bundled and user scheme files) |
Moving around, Selecting, Folding, View options, View colors |
| Multiple files and windows | Movable, renamable tabs with a dot for new lines or matches, a tab menu, Open, tab list (with the hidden count) and Close buttons beside the tabs, Switch to File, options to close the window with its last tab and to show the last used tab after a close; several main windows, tabs moved between them as they are, Always on Top and Full Screen per window | Windows |
| Sessions and settings | Session restore of tabs, marks, offsets and sync groups; remembered position, encoding and time format per file; remembered window state; Tools > Preferences with a shortcut editor | Sessions, Preferences |
| Portable settings | Settings beside the installation, or on Linux beside bin/qlogg, when qlogg.conf is there, or in --settings <dir> |
Settings directory |
| Single instance | A second launch hands its files to the running QLogg over an authenticated loopback connection; any failure opens a window of its own. Ending the process saves settings and the session | Windows |
| Tools and Help | Command palette; scratchpad transforms; path commands, Open in Editor and Open Path at Caret; Keyboard Shortcuts, Show Log with a warning marker, debug log file, Report an Issue, and the user guide in its own browser window (on Linux in portable and --settings mode, the system browser); macOS application menu |
Command palette, Scratchpad, Help |
The guide's Menus section lists every menu item, and Help > Keyboard Shortcuts every key binding.
Build with JDK 21 and the Maven wrapper:
xvfb-run -a ./mvnw clean verifyverify runs Spotless, Checkstyle, SpotBugs with find-sec-bugs, the ArchUnit
rules and every test, and builds the universal jar and the bundle for the build
host. Fix formatting with ./mvnw spotless:apply.
| Command | Builds |
|---|---|
./mvnw clean verify |
Universal zip and the host target's bundle |
./mvnw clean verify -Dqlogg.target=<target> |
Universal zip and that target's bundle; compiles the UI against that target's SWT fragment and skips the swt tests |
./mvnw clean verify -Pall-targets |
Universal zip and all six bundles |
Tests tagged swt open windows.
| Host | swt tests |
|---|---|
| Linux | Run when DISPLAY is set, skipped otherwise. Surefire sets GDK_BACKEND=x11, so under xvfb-run the windows go to Xvfb even in a Wayland session |
| Windows | Always run |
| macOS | Always run, with -XstartOnFirstThread |
Archives are written to dist/, which no build step deletes. They are built on
Linux x86_64 only, because packaging runs tar, jlink, jmod, launch4j's
x86-64 Linux linker and rcodesign. On any other host qlogg-dist builds and
smoke-tests qlogg.jar and writes no archive.
The Temurin JDK archives and rcodesign are downloaded once into
~/.m2/repository/.cache/qlogg/ (-Dqlogg.cache.dir overrides it) and checked
against pinned SHA-256 digests.
Builds are reproducible: with the same JDK (CI's Temurin 21.0.13.1+2), two
builds of one commit write byte-identical jars, qlogg.exe and archives, every
entry dated project.build.outputTimestamp from the parent POM.
.github/scripts/check-reproducible.sh builds twice and compares SHA-256.
A host with Docker (or Podman with compose) and no JDK builds in the image
docker/Dockerfile defines: Temurin 21, git, Xvfb and GTK 3. compose.yaml
holds the mounts and environment and runs the same ./mvnw.
scripts/container.sh # clean package -Pall-targets: seven archives into dist/
scripts/container.sh check # xvfb-run ./mvnw clean verify, SWT tests included
scripts/container.sh clean # ./mvnw clean, and empty dist/
scripts/container.sh shell # a shell in the build image
scripts/container.sh --rebuild # rebuild the build image first
scripts/container.sh --out DIR # write the archives to DIR
scripts/container.sh ./mvnw -B spotless:check- Any other command runs verbatim in the image at the repository root.
- Windows uses
scripts\container.batwith the same arguments; WSL uses the Linux script. - The output directory is bind-mounted over
dist/, socleanempties it and never removes it. - The Maven repository, the wrapper's Maven and the JDK cache live in the named
volume
qlogg-maven-repo. - On Linux the container runs as the calling user, so files in
dist/andtarget/belong to that user. - The service is
linux/amd64, because packaging runs launch4j's x86-64 linker; an arm64 host runs it under its engine's emulation.
.github/workflows/ci.yml runs on every push to main, every pull request and
every pushed v* tag, and on manual dispatch, with Temurin 21.0.13.1+2
(21.0.12.1+1 on windows-11-arm). Actions are pinned by commit SHA, and every
checkout sets persist-credentials: false. Linux jobs install Xvfb and GTK 3
from the Ubuntu archive when the runner image lacks them.
| Job | Runners | Does |
|---|---|---|
test |
ubuntu-24.04, ubuntu-24.04-arm, windows-2025, windows-11-arm, macos-15-intel, macos-15 |
./mvnw -B verify on each target natively, SWT tests included (Linux under xvfb-run) |
package |
ubuntu-24.04 |
./mvnw -B package -Pall-targets,sbom org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Drevision=<version>, then sbom-components.sh; uploads the seven archives and the SBOM as qlogg-archives, kept 90 days for a tag and 14 otherwise |
bundle |
the six test runners |
Unpacks the target's bundle, runs codesign --verify --deep --strict on a macOS bundle, checks the runtime's os.arch, and starts the bundle's launcher until the main window opens, failing when its log holds Unhandled failure or UI task failed. On Windows it also finds the javaw.exe child running qlogg.jar and passes only when its image is the bundle's runtime\bin\javaw.exe with the target's PE machine type (ARM64 on windows-11-arm) and its -l log shows the main window; then starts the universal zip's launcher with setup-java's JDK as JAVA_HOME. Each Windows launch repeats through qlogg.cmd, which also runs over a probe jar from folders whose names hold a space, & and % to check the Java it picks, the JVM options and each argument, then passes unquoted &, ^, ! and % names the way Explorer drops them, and escaped ones from a command prompt, and fails if any name changes or a command in one runs. A CJK file name beside a decoy then goes through both launchers, and the job fails if the decoy opens or the launch neither opens the name nor shows its message |
test-gtk4 |
ubuntu-24.04 |
The SWT modules' tests with SWT_GTK4=1; a test that hits a known GTK 4 failure skips itself |
release |
ubuntu-24.04 |
v* tags only, after every test and bundle job passes: fails unless the tag is v plus <revision> without -SNAPSHOT, runs check-reproducible.sh with the tag's -Drevision, writes SHA256SUMS over the package job's archives, checks the rebuild against it, and creates a draft GitHub Release |
continuous |
ubuntu-24.04 |
Pushes to main only, after every test, test-gtk4 and bundle job passes: writes SHA256SUMS over the package job's archives and runs publish-continuous.sh, which replaces the continuous pre-release with them, the SBOM and SHA256SUMS and moves the continuous tag to the commit |
CI keeps the JDK archives and rcodesign in ~/.cache/qlogg, cached by the
package and release jobs and keyed on qlogg-dist/src/build/dist.xml; the
Maven cache holds no JDK. Only the full test jobs save the Maven cache;
package, release and test-gtk4 restore it, since a Linux cache saved by a
job that skips verify or builds part of the reactor would lack plugins and
send every later job to Maven Central for them.
The draft Release carries the seven archives the bundle jobs ran,
SHA256SUMS and qlogg-<version>-sbom.cdx.json, with GitHub's generated
release notes. Only the release and continuous jobs have contents: write.
The continuous
pre-release holds the build of the newest main commit whose CI run passed,
never marked Latest; its body names the commit, the run and the date.
Publishes run one at a time, and publish-continuous.sh skips a commit older
than the one continuous holds, so a re-run of an older run never replaces a
newer build.
Every module's version is ${revision}, set once in the parent POM
(<revision>0.2.0-SNAPSHOT</revision>); flatten-maven-plugin writes the
resolved POM into each jar. The package job builds with -Drevision: the
tag's version for a v* tag, otherwise <revision>+<short commit> (for
example 0.2.0-SNAPSHOT+60d8d67), which the archive names,
Implementation-Version, qlogg.exe's version text and -v carry. A local
build without -Drevision uses <revision>.
To release:
-
Set
project.build.outputTimestampto the release date and commit; the tag goes on that commit, whose<revision>stays<version>-SNAPSHOT. After the release, set<revision>to the next-SNAPSHOTversion. -
Check the bundled Temurin build (
jdk.*inqlogg-dist/src/build/dist.xml) against the latest Oracle Critical Patch Update and the OpenJDK advisories; move the pins if a fixed build exists. -
Push an annotated tag:
git tag -a v<version> -m "QLogg <version>" && git push origin v<version>
-
Review the draft on the repository's Releases page.
-
Replace the generated notes with the hand-written release notes:
gh release edit v<version> --notes-file <notes>.md
-
Publish the draft on the Releases page, or with
gh release edit v<version> --draft=false.
To fix a bad draft, delete the draft and the tag
(gh release delete v<version> --cleanup-tag) and tag again.
package -Psbom org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBomwrites the CycloneDX SBOM todist/: the shipped modules and every compile and runtime dependency, plus the six SWT fragmentsqlogg.jarcarries. It leaves out build-only tools andqlogg-bench..github/scripts/sbom-components.sh, run by thepackagejob, adds the Temurin releasesdist.xmldownloads and launch4j's header..mvn/maven.configsets--strict-checksumsand a resolver filter that admits only thecentralrepository, so a repository a third-party POM declares is never contacted. A settings mirror replacescentralwith its own id; a build through one adds-Daether.remoteRepositoryFilter.groupId.noInputOutcome.<mirror-id>=true. It also retries an HTTP 429 or 503 from the repository 8 times, starting 10 seconds apart: Maven Central rate-limits GitHub runners.- The
bannedDependenciesenforcer rule fails the build when the SWT host artifactorg.eclipse.platform:org.eclipse.swtreaches a module: its OS-activated profiles add the build host's fragment, a second SWT on the class path. .github/workflows/dependency-check.ymlscans the dependencies for known vulnerabilities weekly and on demand, failing on CVSS 7 or higher. It reads the NVD API key from theNVD_API_KEYrepository secret and reviewed false positives fromconfig/dependency-check-suppressions.xml.- Dependabot proposes Maven, Actions and build image updates.
| Target | SWT fragment | Bundle |
|---|---|---|
| linux-x86_64 | gtk.linux.x86_64 |
qlogg-<version>-linux-x86_64.tar.gz |
| linux-aarch64 | gtk.linux.aarch64 |
qlogg-<version>-linux-aarch64.tar.gz |
| windows-x86_64 | win32.win32.x86_64 |
qlogg-<version>-windows-x86_64.zip |
| windows-aarch64 | win32.win32.aarch64 |
qlogg-<version>-windows-aarch64.zip |
| macos-x86_64 | cocoa.macosx.x86_64 |
qlogg-<version>-macos-x86_64.zip (QLogg.app) |
| macos-aarch64 | cocoa.macosx.aarch64 |
qlogg-<version>-macos-aarch64.zip (QLogg.app) |
qlogg-<version>.zipholds the universallib/qlogg.jar, which runs on all six targets under an installed Java 21, withbin/qlogg,qlogg.exeandqlogg.cmd.- Each bundle adds a Java runtime for its target, so it needs no installed Java.
- Linux targets need the system GTK 3 libraries. GTK 4 is an experimental
opt-in on linux-x86_64: start QLogg with
bin/qlogg --gtk4orSWT_GTK4=1(GTK 4 libraries required; without them QLogg runs on GTK 3 and logs a WARN). Open SWT GTK 4 defects affect scrolling and painting in the log view. - On Windows,
qlogg.cmdis a second launcher besideqlogg.exe. It passes file names dropped on it or typed after it to QLogg as given,&,^,%and!included, and runs nothing in them. It also passes names outside the Windows code page for non-Unicode programs, whichqlogg.exedelivers with?or a look-alike character; limits are in qlogg-dist. - The Windows launchers and the macOS bundles are not signed by a publisher; see First launch of an unsigned build.
qlogg.exe carries no Authenticode signature, and QLogg.app is ad-hoc signed
and not notarized. A downloaded copy therefore needs one approval:
| Platform | First launch |
|---|---|
| Windows | qlogg.exe: SmartScreen shows "Windows protected your PC"; choose More info, then Run anyway. qlogg.cmd: "Open File - Security Warning", "The publisher could not be verified"; choose Run. |
| macOS | macOS refuses the first open. Open System Settings > Privacy & Security and choose Open Anyway for QLogg, or run xattr -dr com.apple.quarantine QLogg.app before the first launch. |
On Windows, unblock the downloaded zip before extracting it (Properties,
Unblock, or Unblock-File): nothing extracted from it then carries the
internet mark, and neither launcher prompts. Neither leaves a console window
open. Measured on Windows 11 26H2 with SmartScreen at its default and Smart App
Control off.
The prompt follows the download mark (the Windows Mark of the Web, the macOS
quarantine attribute), so a copy without it, such as one from removable media,
shows none. The universal jar needs none:
java -jar lib/qlogg.jar runs under an installed, signed Java 21. Each release
lists the SHA-256 of every archive in SHA256SUMS.
qlogg [options] [[+line:N] file]...
java -jar qlogg.jar [options] [[+line:N] file]...
| Option | Effect |
|---|---|
-h, --help, --help-all |
Print usage and exit 0 |
-v, --version |
Print qlogg <version> and exit 0 |
-d, --debug <level> |
stderr log level: 1 INFO, 2 DEBUG, 3 and above TRACE, or error, warn, info, debug, trace; WARN when absent. Show Log (INFO) and the -l file (DEBUG) take it when finer. It applies to QLogg's own loggers; the Java runtime's stay at INFO |
-l, --log |
Also write the log at DEBUG to logs/qlogg.log in the settings directory, for this run; a process that is not the running instance (-m, or a failed handoff) writes logs/qlogg-<pid>.log |
-m, --multi |
Run as an independent instance: no handoff, and it never replaces the saved session |
-s, --load-session / -n, --new-session |
Restore the last session's tabs / start without them. Without either, the session is restored when no file is given and session.loadLast is on |
-f, --follow |
Follow the files given |
--window-width <px>, --window-height <px> |
Client-area size, each independently; without them, the size at the last exit, else 1024 x 768 |
--window-x <px>, --window-y <px> |
Window position; ignored on Wayland, where the compositor places windows |
--settings <dir> |
Settings directory, created owner-only when missing; holds qlogg.conf and QLogg's SWT native cache |
+line:N |
Open the next file at line N, once indexing reaches it; a line past the end goes to the last line |
--gtk4 |
bin/qlogg only: sets SWT_GTK4=1 for the experimental GTK 4 backend and is not passed to Java, so qlogg.jar, qlogg.exe and qlogg.cmd reject it |
-- |
End of options |
file |
Files to open, a tab each; the last one is shown. Without -m, they go to the running instance for the same settings directory, with -f and +line:N |
Options combine: -mf, --opt=value, -d2. A command-line error prints a
message to stderr. Exit statuses:
| Status | Meaning |
|---|---|
0 |
Normal exit, or the files went to the running instance |
1 |
Command-line error: unknown option, bad value, -s with -n, +line:N without a file, unusable --settings |
2 |
Unsupported platform or Java, not started from qlogg.jar, or the macOS main-thread relaunch failed |
3 |
The SWT natives could not be prepared or the display could not start, for example without the GTK libraries |
4 |
A Java Error on the UI thread, or more than 10 runtime exceptions there within 1 s, ended the run; the session is saved unless that quit failed too |
QLogg keeps its files in the first directory that applies:
| Mode | When | Directory |
|---|---|---|
| Explicit | --settings <dir> |
<dir> |
| Portable | qlogg.conf exists in the installation directory, the parent of lib/ |
The installation directory |
| Portable (Linux) | qlogg.conf exists beside the bin/qlogg script and not in the installation directory |
bin/ |
| Per-user | Otherwise | Linux $XDG_CONFIG_HOME/qlogg (default ~/.config/qlogg), Windows %APPDATA%\QLogg, macOS ~/Library/Application Support/QLogg |
An empty qlogg.conf in either place selects portable mode. In a macOS
bundle the installation directory is QLogg.app/Contents/app, inside the
signed bundle; portable use there goes through --settings.
| File | Contents |
|---|---|
qlogg.conf |
Settings (Java properties, version=1); the keys are in qlogg-app settings |
qlogg_session.conf |
The session: each window's tabs, position, size, maximized state and Always on Top |
positions.conf |
Position, encoding override and timestamp choices of the last 500 files |
qlogg_error.flag |
Present after a run quit for UI-thread failures, until the next session restore skips the tabs; holds noticeShown once a launch showed the notice |
instance.lock, instance.endpoint |
Single-instance lock and handoff endpoint |
logs/ |
Debug log files |
colors/ |
User color schemes, <id>.properties (format) |
cache/ |
The user guide's copy; the universal jar's SWT natives in cache/swt (explicit and portable mode); on Windows, the guide browser's data in cache\webview2 |
qlogg.conf.invalid and the like |
A malformed file's last copy, kept at the next save |
- In explicit and portable mode on Linux,
user.homeis the settings directory, so GTK's.swt/trims.prefslands there too. - On Linux and macOS a launch hands its files over only when the settings directory belongs to the current user and no one else can write it; otherwise every launch opens its own window.
| Path | Contents |
|---|---|
qlogg-bootstrap/ |
Entry point of qlogg.jar: Java version check, target selection, SWT natives, nested-jar class loader |
qlogg-core/ |
Threads, memory budget, file access, encoding, line index, documents and viewport; no SWT, no logging dependency |
qlogg-app/ |
Command line, key bindings, controllers, view contracts, settings, search history and filters, About facts; no SWT |
qlogg-ui-swt/ |
SWT views: main window, log views, search and quick find bars, dialogs; the toolbar and menu icon set (src/icons/*.svg), rendered to PNG at build time |
qlogg-launcher/ |
Composition, logging configuration, architecture rules |
qlogg-dist/ |
Universal jar, launchers, runtimes and archives; icons |
qlogg-bench/ |
Benchmark harness, JMH probes and comparison scripts; not shipped |
config/ |
Checkstyle, SpotBugs and find-sec-bugs configuration |
docker/, compose.yaml, scripts/ |
Container build |
.github/ |
CI workflow and the scripts its steps run |
tools/icons.sh |
Renders the application icon from qlogg-dist/src/icons/*.svg |
docs/user-guide.md, docs/images/guide/ |
The user guide Help > User Guide shows, and its screenshots |
tools/screenshots.sh, docs/images/ |
Writes the light and dark screenshots and the user guide's images under Xvfb from generated mock logs (Linux) |
| Document | Covers |
|---|---|
<module>/README.md |
The module's packages, contracts and links to its topic documents under <module>/docs/ |
qlogg-core/TESTING.md, qlogg-app/TESTING.md, qlogg-ui-swt/TESTING.md |
Test strategy and coverage by class |
docs/user-guide.md |
The user guide |
NOTICE, qlogg-dist/src/dist/THIRD-PARTY.txt |
Licenses of shipped components |