MindAttic/ProcessLogger
Tool

ProcessLogger.

Catch whatever stole focus from your game.

ProcessLogger records every Windows process start and exit, even ones that live for a fraction of a second, along with memory peaks and every foreground-window change, and lets you search it all in a filterable viewer.

Working C# .NET 10 ETW WMI WPF WebView2 SQLite
ProcessLogger viewer showing the Processes and Focus tabs, filter boxes and column headers from Name to Source
The Processes tab: include and exclude filters, match mode, row count and sortable, filterable columns.

What it is

Find the window that was gone before you could see it

A window flashes up and your full-screen game drops to the desktop. Task Manager shows nothing, because whatever did it lived for half a second. ProcessLogger exists to answer exactly that question: what just ran, who started it, and what took the foreground.

It is a pair of small Windows apps. An elevated background logger watches the kernel's own process events through ETW, cross-checks them against WMI, and writes every process lifecycle and focus change to a local SQLite database. A viewer lets you filter, sort and export that record.

Each row carries the parent process, the executable path, the command line, the main window title and how heavy the process was: peak working set, peak private bytes and its last working set before exit. Everything stays in one file under your own profile, and nothing is sent anywhere.

Who it's for

  • Gamers losing full-screen focusLeave the logger running, wait for the next drop to the desktop, then look up exactly what launched at that moment.
  • Power users and troubleshootersSee short-lived updaters, helpers and scheduled tasks that never stay open long enough to catch by eye.
  • DevelopersWatch the full process tree your build, installer or test run spawns, with command lines and memory peaks.

Features

What you get

01

Kernel-level capture

The ETW kernel process trace sees processes as they are created and destroyed, so nothing slips through between polls.

02

Two sources, reconciled

WMI runs as a redundant cross-check and a fallback. Reports of the same PID are merged, and each row says whether Etw, Wmi or Both saw it.

03

Who started it

Parent process name, full executable path and command line on every row, plus the main window's title when it has one.

04

How heavy it was

Memory sampled every 50 ms while a process lives: peak working set, peak private bytes, final working set and the sample count.

05

A focus log

A foreground hook records each window that takes focus, with its process, title, and the times it gained and lost focus.

06

A filterable viewer

Processes and Focus tabs with include and exclude filters (partial, exact or regex), per-column value filters, sorting, remembered column widths and auto-refresh.

07

Export what you see

Export CSV writes exactly the filtered, sorted rows on screen to a file you choose.

08

Local and private

One SQLite database in WAL mode under your own profile, so the viewer reads while the logger writes and nothing leaves the machine.

How it works

From mystery to answer

  1. Start the logger

    Run ProcessLogger.Cli.exe and accept the administrator prompt; it reports that it is watching.

  2. Reproduce the problem

    Play, work or wait as normal until the window steals focus again.

  3. Open the viewer

    Switch to the viewer, check the Focus tab for the moment it happened and filter Processes to the same time.

  4. Read the row

    Name, parent, path, command line and lifetime tell you what it was and what launched it.

Quick start

Build and launch

Needs Windows, the .NET 10 SDK, the WebView2 runtime and an administrator account (ETW and WMI tracing need elevation).

The full setup guide lives in the documentation.

powershell
> git clone https://github.com/mindattic/ProcessLogger.git
> cd ProcessLogger
> powershell -ExecutionPolicy Bypass -File .\run.ps1 -Redeploy -RunRelease

Part of MindAttic

One piece of a bigger workshop

ProcessLogger's own operational logging goes through MindAttic.Log into its own database, kept apart from the process record. It deploys with the shared MindAttic run menu like every other app in the family.

Status

Where it stands

Working

Capture and viewing work; tuning it to run for weeks

Process and focus capture, reconciliation, memory sampling and the viewer all work today. The milestone makes the logger lean enough to leave running for weeks with a quiet operational log, adds tests for the reconciler's edge cases, and finishes the move to the shared deploy.

Current milestone: Lean logger: a quiet operational log, a trusted reconciler and one standard deploy.

Next step

Find out what really ran

Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.