Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

VCLogg2 log viewer

简体中文

When a request times out, the line just before the error can tell you which service the request was waiting for. Open a log in VCLogg2, search for the failure, then select a match to read the lines around it. You can do the whole investigation locally on Windows, macOS or Linux.

Guide illustration showing lines 2 and 4 matching a search, with result 4 selected in the original file

Follow a sample investigation

Start withWhat you can find
One five-line logIdentify the upstream service named just before a timeout and mark the clue. Trace your first timeout
A request handled by the gateway and payments servicesFind four related records in a folder and determine which service reported trouble first. Download and search both logs · Compare the merged timeline

For a first installation, choose the package for your platform.

What are you trying to do?

I want to…Open this guide
Read a file, a folder or yesterday’s sessionOpen files and folders
Find a phrase in this file or across a directorySearch logs
Use a teammate’s filter on my logsDownload and use a cloud filter
Keep an important line and explain why it mattersMark, color and annotate
Make dense logs easier to readChange font and spacing
Search, jump or mark from the keyboardKeyboard shortcuts

For a running service, follow new lines as they arrive. For a handoff, save just the relevant results. Live logs · Export results · More workflows

Help and development

Troubleshooting · Privacy · Architecture · Build from source · Contribute

Choose a package and upgrade

简体中文 · Guide home

Open Assets on the release page and choose the desktop package for your machine. In the filenames below, <version> stands for the release number. Download VCLogg2

Machine and preferenceDownloadFirst launch
Windows x64, Start menu entryvclogg-<version>-windows-x86_64-setup.exeRun the installer, choose the program and data directories, then open VCLogg2 from Start.
Windows x64, portable copyvclogg-<version>-windows-x86_64-portable.zipExtract the entire archive and double-click vclogg2.exe.
macOS on Apple siliconvclogg2-<version>-macos-aarch64.dmgOpen the DMG, drag VCLogg2.app into Applications and launch it from there.
Linux x86_64vclogg2-<version>-linux-x86_64.tar.gzExtract the archive and run the command below from the directory containing the installer.
./Install-VCLogg2-linux.sh --launch

The Linux installer writes to ~/.local/lib/vclogg2 and creates a desktop entry and ~/.local/bin/vclogg2. Later, run ~/.local/bin/vclogg2 service.log worker.trace from the directory containing your logs to open both together. Once you see the empty workspace, try the sample. Trace your first timeout

Where do the Windows editions keep my data?

Setup installs for the current user. The program defaults to %LOCALAPPDATA%\Programs\VCLogg2 and the data directory to %LOCALAPPDATA%\VCLogg2. Portable copies keep data in a VCLogg2 directory next to the executable, so extract to a writable folder. For an Explorer context menu entry, enable the file context menu in Settings. Open files and folders

Check for updates and upgrade

Choose Help → Check for updates for release notes and downloads. If the network request fails, the app dates any cached result it displays or opens Releases if it has no usable result. For package provenance and system prompts, see the code signing policy.

Exit VCLogg2 before replacing program files. On Windows, run the newer installer or update the extracted portable program files while keeping the adjacent VCLogg2 data directory. On macOS replace the application bundle. On Linux rerun the installer from the new package. Windows uninstall keeps your data. Choosing a different data directory does require moving the data yourself. To keep history, marks and settings, close all instances using that directory and copy the entire directory. Backup and migration

Trace your first timeout

简体中文 · Guide home

A checkout request retried and then timed out. Which service was the request waiting for? You can answer that with a search and a single mark.

Open the example

Save the sample log to your computer, or copy the five lines below into a plain text file named checkout.txt. Choose File → Open… and select it. The file opens in its own tab with the original lines in order.

09:14:02 INFO  id=42 request started
09:14:03 WARN  id=42 retry
09:14:04 INFO  id=42 peer=payments
09:14:05 ERROR id=42 timeout
09:14:06 INFO  id=42 request closed

Find the failure

  1. Press Ctrl+F (macOS ⌘F) to focus the main search field. Choose Current and turn regex off.
  2. Enter retry|timeout and press Enter. The vertical bar means “either word” in this search. Choose Matches only in the results.
  3. Select the result numbered 4. The log above reveals the timeout. On line 3, peer=payments identifies the service.

Guide illustration of the original five lines above the two matching rows, with line 4 selected in both

If you see fewer than two matches, check that the per-file limit in Settings → Search is 0 (unlimited), then run the query again.

Keep the clue

Click line 3 in the original log and press M. A dot appears beside the line. Switch the results to Marks & matches. You can now read the retry, the name of the service and the timeout together on lines 2, 3 and 4. To keep these lines in a separate file, right-click the results and choose Save to file….

What happened on the payments side? The next exercise gives you a log from each service. Follow the same request ID across both, or stay with this log and explain why line 3 matters. Trace the request across two files · Learn how to annotate a line

Find your way around the workspace

简体中文 · Guide home

Open a file and start with its name in the toolbar. The path tells you which copy of the log you are reading. Click a path segment to reveal it in the left file tree, or use the copy button to pass the full path to a teammate.

Read the original and the matches together

Workspace map showing the file tree, file tabs, original log, search field, results and bottom search tabs

Workspace map with the optional file tree open. The original log and the results each keep their own scroll position.

Read the original log above the search bar. The results below keep the original line numbers. Select result 4 and you can read line 3 above it in the original. Drag the divider to give either area more room. Press W with the log focused to wrap a long line. Wrapped text still has one source line number.

Switch files or switch questions

WhereWhat it changes
File tabsChoose the document to read. Drag a tab to reorder it. Rename its display title or use its context menu to move or copy it to another window.
Left navigationThe toolbar’s Show sidebar button reveals the file tree. Vertical tabs in the sidebar actions menu shows open tabs down the left. Hiding the sidebar restores the horizontal tabs.
Search tabs in the status barKeep separate questions and results. Use + for a new current-file, global or directory search. The list button finds a tab even when the strip is collapsed.
Status barCheck file size, encoding and source position. The notification panel keeps messages from the current run.

Quick find searches whichever log or result area you last clicked. Settings open in their own window. Keyboard navigation · Mouse and selection gestures · Layout reference

Common investigations

简体中文 · Guide home

A request failed somewhere across several services

Open the related files, choose Global search and select the participating tabs. Search for the request ID. Expand each file’s group and click a hit to inspect the surrounding lines. To turn the matches into a single timeline, use time merge when the timestamps start in a supported format. Try it with two service logs · Check the merged order

A service keeps writing while you investigate

Keep the service log active and turn on View → Follow end. To examine an earlier incident, turn following off and mark the relevant lines. The active log can still refresh while you read. Append a line and watch it arrive · Marks and highlighting

The same incident comes back next week

Save the matching words as a predefined filter and give it a name your team will recognize. Use it in another file from the search bar’s Filters menu. If you share a server, publish the rule for teammates to download. Save a rule · Download a teammate’s rule

Someone sent a snippet instead of a file

Copy the snippet, then use File → Open clipboard as temporary file…. Saving updates the temporary file. For a lasting copy, paste the text into a new file and choose its path. Search and keep a ticket snippet

For the first walkthrough, use the five-line sample. For a missing match or an unexpected result, check the troubleshooting guide. First investigation · Diagnose missing results by line number

Open files and folders

简体中文 · Guide home

Open one log or several

Choose File → Open…, use the open button on the file toolbar, or press Ctrl+O (macOS ⌘O). Select one or several files in the picker. You can also drag them from your file manager into the workspace. Each file has its own tab. Opening the same path again takes you to the existing tab.

A large file can show its first lines while the full index is being built. Once indexing finishes, you can search the entire file, jump to a source line with Ctrl+G / ⌘G, or jump to the end.

Drop a folder

Drag a folder over the workspace and pause before releasing. The drop target determines which files open. In the example, logs/ contains one file and a subfolder.

Folder diagram. Dropping logs in the workspace opens checkout.txt. Dropping it on Include subfolders also opens archive/worker.txt.

  • Workspace — release here for the files directly inside the folder.
  • Include subfolders — release over this central target to open files at every depth. You can drop files and folders together. New tabs follow the traversal order, with entries sorted by name within each folder.

Only looking for one phrase somewhere on disk? Select Directory in the search bar and choose a folder, extensions and whether to include subfolders. You can open a file from a match. Try directory search with two logs

Find your place again

If you have…Use…
A file you opened recentlyRecent files in the empty workspace. Pin a frequently used file for next time.
Files from the previous sessionChoose Previous files in the empty workspace to reopen them.
A file open deep in a directory treeClick its name or a folder in the toolbar path to reveal it in the left file tree.
Text copied from a ticketFile → Open clipboard as temporary file… opens the text in an editable temporary document. Search a ticket snippet

On Windows, Tools → Settings → General → File context menu adds 使用 vclogg 打开 for the current user. On Windows 11, look under Show more options in Explorer.

If the file is still growing, leave its tab active in the foreground window. View → Follow end keeps the newest lines in view. Watch a new line arrive

Follow a growing log

简体中文 · Guide home

Open the file your service is writing and keep its tab active in the foreground window. Once indexing finishes, VCLogg2 checks for changes. View → Follow end decides where you read after new lines arrive.

What you want to doActionWhen the file grows
Watch the newest lineTurn on Follow endThe log scrolls to the bottom after a refresh
Read an earlier errorTurn following off and return to the errorThe active log and relevant search results refresh while the log keeps your reading position
Look at a different fileSwitch file tabsThe newly active file is checked. Switching back checks the original file again.

Watch one line arrive

Save the five-line sample as checkout.txt in a working folder, open it in VCLogg2 and enable following. Open a terminal in that folder. Run the command for your shell to append line 6 to this sample copy.

Windows PowerShell

Add-Content -LiteralPath .\checkout.txt -Value '09:14:07 INFO  id=42 retry finished'

macOS or Linux shell

printf '%s\n' '09:14:07 INFO  id=42 retry finished' >> checkout.txt

Return to the VCLogg2 window. It checks the active file and the sixth line should appear at the end. If you have already run retry|timeout on this file with no line or match limits, the matching source lines are now 2, 4 and 6.

If the new line is missing

Check the path against the one used by the writer, then bring the window and file tab to the foreground. F5 reloads the whole file and can help after rotation or changes to older text. A directory search uses a snapshot. Run it again to discover newly created files. Directory search

Refresh timing, file monitoring and large-file behavior

Normal events coalesce over 400 ms. The active document is rechecked every 30 seconds to recover missed notifications; failure paths schedule retries, commonly after 5 seconds. These are scheduling intervals, not an end-to-end latency guarantee. Opening/search work can defer refresh. Leaving the tab or deactivating the window releases monitoring and cancels pending publication.

UTF-8/BOM growth can reuse the index and prior search prefix after checking identity and head/tail blocks. The old tail and appended data are rescanned, handling partial lines and CRLF boundaries. Truncation, replacement, other encodings, initial growth of an empty file or failed validation trigger a rebuild. Old content remains visible until the replacement is ready.

Limitation: rewriting an unsampled middle region while also appending may escape the fast head/tail check. F5 always rebuilds fully. A fast snapshot is not proof of full-file equivalence; full searches retain their own source checks. Directory searches do not continuously discover new files.

Text selections are tracked by source-line identity and retained when their text still matches, including result regrouping. Changed text or removed results invalidate the corresponding selection. Collapsed groups retain selection metadata but hidden rows do not participate in visible text copying.

Source: file_watch.rs, document_lifecycle.rs, document.rs.

Search logs and read the surrounding lines

简体中文 · Guide home

Find every retry or timeout

Open the sample from the first walkthrough. Press Ctrl+F (macOS ⌘F), choose Current, turn regex off and search for retry|timeout. Press Enter. With Matches only, the results show source lines 2 and 4. Select line 4 to read what happened just before it. Get the sample log

Search example. Line 4 in the lower results points to line 4 in the original file above the query.

Choose where to look

If the clue might be…ScopeHow to narrow it
In the log you are readingCurrentSet start or end lines in a row’s context menu.
In one of several open tabsGlobalRight-click the scope control to choose files. Expand the matching file groups.
In a folder on diskDirectoryEnter or choose a path and configure extensions, subfolders and hidden directories. A search uses the files present at execution time.

Search only the lines around an incident

Open the five-line checkout.txt sample in Current scope. Right-click source line 2 and choose Set search start, then right-click line 4 and choose Set search end. Enter id=42, press Enter and select Matches only.

ActionSource line numbers after submitting again
Start at 2, end at 42, 3, 4, including both endpoints
Right-click and choose Clear search limits1, 2, 3, 4, 5

Each search tab keeps its own boundaries for each file. Setting only a start searches through the last line. Out-of-range text dims as soon as you change a boundary. The next submission updates the results.

Find a request in a folder on disk

Save gateway.txt and payments.txt in the same empty folder. The files come from two services. One line belongs to a different request.

  1. Select Directory on the search bar, then choose Configure directory search… or right-click the scope button. Enter the folder path or click Select….
  2. Enable File types and enter *.txt. To include another extension, use *.txt|*.log. Clearing the checkbox includes all file types. Turn on Include subdirectories to search below this folder. This also makes Include hidden directories available.
  3. Confirm the directory options. In the main query field, enter id=42, press Enter and choose Matches only. With an unlimited result count, each file group has two hits. Expand gateway and read the source numbers 1 and 3. The health check on line 2 belongs to another request.

Opening a directory result creates a file tab when needed. Run the search again to pick up files added to the directory.

To see which service reported trouble first, right-click these directory results and choose Merge results in new tab. Go straight to the illustration after step 3 of the next exercise. Check the four events in time order

Choose how to match

  • Literal search. A vertical bar separates alternatives. Spaces count, including at either end. Other punctuation such as . matches itself.
  • Regex search. Enable regex to find a pattern, for example ERROR.*id=[0-9]+. On the sample this selects line 4. Patterns run on one line at a time. Rust regex supports neither look-around nor backreferences. A syntax error leaves the previous results available.
  • Quick find inside a pane. Click the log or results, then press Ctrl+Shift+F / ⌘⇧F. Use Enter / Shift+Enter for the next or previous occurrence, Esc to close. Quick find has its own case, whole-word and regex options. Its literal mode searches for the actual | character.

Keep another search open

Use + in the status bar to start a second search. For instance, keep retry|timeout in one tab and search for id=42 in another. Each keeps its draft, result mode, selected rows, folded groups, scroll position and per-file line limits. Case and regex switches are shared. Run the query again after changing them.

Double-click a search tab to rename it or drag to reorder it. The list button finds tabs when the strip is crowded. Closing the last current-file search tab also starts that file’s close procedure. Global and directory searches may all be closed and recreated with +.

Each window runs one search at a time and queues the others. Switching tabs lets a search finish in the background. Submitting again on the same tab replaces its previous job. Stop cancels the current tab’s search. The last completed results stay visible until the next set is ready.

Decide which lines to keep

Result modeWith lines 2 and 4 matching and line 3 marked
Matches only2, 4
Marks only3
Marks & matches2, 3, 4. A row that both matches and is marked appears once.

An empty query can show marked lines. Settings → Search controls the maximum matches per file. With a nonzero limit, each file contributes its first N matches and the export uses the resulting set. Set the limit to 0 and rerun the search when you need all matches.

Recall a previous query from suggestions or manage it in Settings → History & storage. To reuse a named rule, select it under Filters and submit the query. A regex filter can enable regex mode. Reusable filters · Export results · Search performance

Mark a clue and explain it

简体中文 · Guide home

Take line 4 of the walkthrough log. You might want to find this particular line later, notice the word timeout elsewhere, or leave a note about the next thing to check. Each has its own control.

Annotated line detail with a row-mark dot, the word timeout colored, and a text tag reading Check peer after the text

Keep a line in your results

Click a source or result row and press M. Switch results to Marks only to see the lines you have picked, or Marks & matches to read them alongside hits. Marking several rows at once fills in any missing marks. If all selected rows are already marked, M removes their marks.

Give a word a color

Double-click timeout in the log to select the word, then press Ctrl+D / ⌘D to cycle its color label. The file remembers the text rule. With no text selected, the command uses the nonempty text of the selected rows. Change the palette in Settings → Highlights & annotations → Color labels.

Leave a note for your next session

Select one source row, press N, type Check peer and choose Add. The text tag appears at the end of the line and the row is marked. Double-click the tag to edit it. Notes and colors stay in the file session. Copying or exporting the line gives you the original log text. Style and reuse text tags

Color matches and log levels automatically

  • Search hits. Enable Highlight → Highlight search matches. In Settings → Highlights & annotations → Search matches, choose how main-search and quick-find matches look.
  • Log levels. Open Settings → Highlights & annotations → Log coloring, choose a group suited to the log format and choose Use this group if it is not already active. Turn on Enable coloring. Rules can style the whole line or just the matched keyword. Presets include Android Logcat, Java / Spring, Python and Nginx errors.
  • Selection. The Selection style tab controls how selected text and rows look. Use the source line number and the mark column to identify a row even if you change the colors.

Try this on the sample log · Choose a result mode

Add, reuse and remove text tags

简体中文 · Guide home

An error may be easy to find again. A text tag preserves the reason you cared about that particular line. Searches, copies and exports continue to use the original log text.

Leave a note beside one line

  1. In the five-line sample, click source line 4 and press N. You can also right-click it and choose Text mark → New mark…. If you found it in a directory search, open its file and let indexing finish first.
  2. Replace the generated name with Check peer. Enter 1–128 characters on one line. Inspect the style in the preview below and choose Add.
  3. The note appears at the end of the line and the row gains a mark in the margin. Double-click the note to edit it and choose Save to confirm, or Cancel to discard the draft.

The row-mark dot, a color label on timeout and a Check peer text tag at the end of line 4

Reuse a note

If you often mark lines “Review later”, right-click another row and pick that name from Text mark. The menu lists the ten most recently used entries. For an older one, choose New mark… and search Mark history on the right. Selecting an entry fills in the text and style so you can adjust it before adding. Two rows with the same note can be edited independently.

Position and style

A new tag follows the line text and any existing tags. Vertical centering starts enabled. Drag the tag on the log row to move it sideways. Turn centering off to move it vertically too. Dragging in the dialog only changes the preview. Press Esc during a drag to restore its previous position.

The base line height limits tag height and font size. Transparency runs from 0% (opaque) to 100% (fully transparent). Use the preview to check a saved font, foreground, background and shape against your log.

Remove the right item

What to removeAction and scope
One note on one lineRight-click the note and choose Delete mark. The row mark and reuse history remain.
All text notes in this fileRight-click a row and choose Text mark → Clear all marks. This includes rows outside the current results. Row marks and reuse history remain.
A name from reuse historyDelete its entry from the history list in the dialog. Notes already attached to logs remain.
The dot in the marginSelect the marked row in the log and press M. Row marks and result modes

History is case-sensitive and keeps the most recent style for each name. When the source line changes, an old tag can be hidden until the line matches its recorded content again.

Export results or merge two logs by time

简体中文 · Guide home

Choose whether the recipient should read each file separately or follow events across files in time order. Right-click the results area for the commands available in the current scope.

What you needChooseDestination
A log to hand to a teammateSave to file…A path you choose. Current-file results keep their row order. Multi-file output groups rows under full-path headings.
A smaller log to keep searchingOpen in new tabA result file in the application’s temporary directory, opened in a new tab.
One timeline across several logsMerge results in new tabGlobal or directory results in a new temporary tab, interleaved by timestamp without file headings.

Put two services on one timeline

  1. Open gateway.txt and payments.txt. Choose Global and select just those two files.
  2. Search for id=42, press Enter and choose Matches only. Look for two hits per file. If there are fewer, check the line boundaries and per-file match limit.
  3. Right-click the results and choose Merge results in new tab. Read the new tab from top to bottom. The payments service reports pool busy 350 milliseconds before the gateway reports timeout.

Four events in time order, with separate columns showing which events came from gateway and payments

The merged file keeps the original line text. The illustration adds source columns so you can follow each service. To copy individual records, select them and use Ctrl+C / ⌘C. Save to file… captures the last completed result set, including rows outside the viewport. The per-file match limit still applies. To include a marked context line, switch to Marks & matches first. Export writes log text without visual dots, colors or annotations.

Which timestamps work?

A source line must start with MM-DD HH:mm:ss, a decimal point and 1–6 fractional digits. A T may separate the date and time, as in 11-18T09:14:02.240. Each input file should already be in chronological order. Merging preserves its internal line order. Equal timestamps use file order and then source line number.

Continuation lines inherit the nearest preceding time in the same file. At the beginning of a file the merge can look ahead to its first timestamp. If an entire file has no recognizable times, its hits come after timed records. The five-line introductory sample has time-of-day only. The two downloads above include a month and day for this exercise.

An ordinary save writes and syncs a temporary file in the destination directory before replacing the target. Canceling the dialog leaves it as it was. Temporary results stay out of recent files and startup recovery. To keep a merged file, copy its path from the toolbar and use your file manager to copy it to a permanent folder.

Edit a file, a clipboard snippet or a new draft

简体中文 · Guide home

Check the path of the active tab first. Where Ctrl+S / ⌘S writes depends on how the editor was opened.

What you haveHow to startSave destination
An existing filePress I in the log or choose Edit → Edit fileThe source file at its current path
Text from a ticket for a quick investigationFile → Open clipboard as temporary file…The log created in the application’s temporary directory
Text you want to keepChoose Create new file in the empty workspace, then paste into the editorA new path you choose on first save

Search a snippet copied from a ticket

  1. Copy the text and press Ctrl+V / ⌘V outside an input in VCLogg2. If paste confirmation is enabled, choose Create and edit. The text opens in a temporary document’s editor.
  2. Make and save any corrections. Choose Edit → Exit edit mode to return to reading. You can now search with Ctrl+F / ⌘F.
  3. To keep a named copy, copy the edited text, choose Create new file in an empty workspace, paste and press Ctrl+S / ⌘S. Pick an unused filename such as ticket-42.txt. You can reopen it from that path later.

When does the source file change?

Saving in the editor for an existing file replaces the file on disk. To record an observation, select a row and press N for a text tag. The original line is still available for copying and exporting. Leave a note on a line

If edits are pending when you exit edit mode or close the tab, Save writes them first, Don't Save discards them and Cancel returns you to the editor. The first save of a new draft requires a new path. If the selected filename already exists, pick another name.

If a save is refused or editing is slow

  • File changed on disk. Saves check size and modification time. Copy the edits you want to keep, reopen the latest file and reconcile your changes.
  • Invalid encoding or characters that cannot be saved. Existing files keep their encoding, including supported BOMs and legacy encodings. New characters must be representable in that encoding. To keep a separate UTF-8 copy, paste into a new file.
  • A large file takes time to enter edit mode. Editing decodes the entire file, so memory needs depend on its size. You can search, annotate and export a subset in reading mode. Export search results

Cloud connection and filter sync

简体中文 · Guide home

What you can sync

A team can share named queries on one filter server. Each filter includes its name, match value, regex setting and note. For example, one person can publish Payment failures so others can download it and search their own logs for retry|timeout. Log files and search results stay on each computer. You choose when to download, update or publish a filter. Downloaded filters also work offline.

Download the server and connect

If your team already runs a compatible service, ask its operator for the base URL and go straight to step 4. To try the server on your own computer, start at step 1.

  1. Download and extract the server. Open a release with server packages on VCLogg2 Releases and expand Assets. Choose vclogg-server-<version>-windows-amd64.zip for Windows x64 or vclogg-server-<version>-linux-amd64.tar.gz for Linux x64. Extract it and open a terminal in the directory containing config.example.yaml.

  2. Prepare the configuration. On first use, run Copy-Item config.example.yaml config.yaml in Windows PowerShell or cp config.example.yaml config.yaml on Linux. The current desktop client sends an unsigned registration request. The server requires a signature by default. For an isolated local trial only, keep listen: 127.0.0.1:8787 and set enabled to false in the client_auth section of config.yaml. For team use, obtain an HTTPS endpoint that supports the desktop client’s registration method.

  3. Start the service. To use the admin console for the first time, run the admin create command below and enter an administrator password when prompted. For subsequent starts, run just the serve command. Leave the terminal running. You can open the admin console on the server computer.

    Windows PowerShell

    .\vclogg-server.exe admin create -config ./config.yaml -username admin
    .\vclogg-server.exe serve -config ./config.yaml
    

    Linux

    chmod +x ./vclogg-server
    ./vclogg-server admin create -config ./config.yaml -username admin
    ./vclogg-server serve -config ./config.yaml
    
  4. Connect the desktop client. Open Tools → Settings → Cloud connection. Enter the base URL under Server address. Use http://127.0.0.1:8787 for a server on the same computer, or your team’s URL from another computer. Enter an employee ID or nickname under User name and choose Test connection. A success message confirming a cookie was obtained means you can start syncing.

Use cloud filters

Download a teammate’s rule

  1. From the search bar, open Filters → Edit predefined filters… and choose Cloud filters. You can also reach the editor from Tools → Predefined filters….
  2. Search by name, keyword, note or sharer. Open an entry to see its match value and revision.
  3. Choose Download locally, or select several entries and choose Download/update selected. In Local filters, check that the rule is available. Return to the log and check the rule in Filters to use it.

Example flow from a cloud filter named Payment failures to a local search that finds lines 2 and 4

Try a filter on your own

  1. Open Tools → Predefined filters… → Local filters. Select +, name the filter Payment failures, enter retry|timeout as the match value and leave regex off. Choose Done in the detail view, then OK in the local list.
  2. Open the walkthrough log. Start with an empty query in Current scope. Open Filters on the search bar and check Payment failures. The query field now contains the two keywords.
  3. Click the search button. In Matches only, lines 2 and 4 appear. You can use the same filter in a global or directory search.

Share a new rule or update one

Select a saved local filter, choose Share and confirm the selected entry. For an already shared filter, save your edits locally, inspect its details and choose Submit local changes to publish a revision.

When you update a filterWhat to do
Only the server has changesChoose Update local to bring them in.
Both copies changedOpen the cloud entry and choose Merge update or Resolve conflict. The example below shows what each person keeps.
You want a variation for a different projectChoose Save as new filter. It gets its own UUID even if its name and match value are the same.
You need an older revisionChoose Restore locally in the history. Review it before submitting another revision.

A concurrent edit may require another review before submission. Removing a remote share leaves your local rule available. The local list also supports import/export. JSON export uses v5 and import accepts earlier v1–v4 files, arrays and legacy Qt CONF/INI files. Existing local rules absent from an import are kept.

Two people edited Payment failures. Which values survive?

Suppose you and a teammate downloaded the same rule. Its note originally said “Check payments”. You changed the name and note locally. Your teammate changed the note on the server. Open the cloud entry and choose Resolve conflict.

FieldYour saved copyNew cloud revisionYour copy after the merge
NamePayment timeouts and retriesPayment failures (original name)Payment timeouts and retries
NoteAsk the payments teamNotify the on-call engineer“Notify the on-call engineer” if you choose Use remote

Only the note needs a decision. To keep “Ask the payments team”, choose Keep local beside the note. Choose Complete merge and check both fields in your local copy. If you want to ask your teammate first, choose Resolve later to keep the original common revision for comparison. When you have editing permission and local changes to share, choose Submit local changes to publish the merged version.

If the connection or sharing fails

  • Connection fails. Verify the service URL and authentication with its operator. The desktop client registers unsigned. The bundled Go server defaults to signed registration (client_auth.enabled: true) and may reject this client. Production deployments need compatible registration. Disabling that protection is limited to isolated development.
  • Sharing is disabled. Check whether the server advertises filter-uuid-branches-v1. Older servers can still support browsing and downloads.
  • Working offline. You can browse previously cached public pages and bring in safely newer cached revisions. Publishing, liking, remote deletion and retrieving revision history need a connection.

Requests use the service’s /api/v1 endpoints on demand. Public connection settings are stored in SQLite. Session files under cloud/sessions/ contain cookies and CSRF data without additional encryption. Keep them out of shared diagnostic attachments. Local data and privacy · Filter revision reference

Adjust the workspace for reading

简体中文 · Guide home

Give dense logs more space

Open a log and leave a few results visible. Choose Tools → Settings → Log reading (or open Settings with Ctrl+, / ⌘,). Change Log font size to make the characters larger. Adjust the extra line spacing to separate adjacent records. Watch the four sample lines at the top of the page. Highlights & annotations uses the same lines to preview log-level colors, search and quick-find matches, and selections.

Reading example showing the same two records with tighter and wider line spacing

Valid changes apply across windows and save automatically. Close Settings with Esc or Ctrl+W / ⌘W. To undo an appearance change, set the value back. Font and line spacing affect both original text and results. Use W in the log when a long line runs off the right edge.

Where to find a setting

Type line number color in the sidebar search. Settings opens the first matching option, scrolls it into view and highlights the control. Select another result to jump to it, or clear the search to return to the nine categories.

I want to…Category
Choose the language, theme or app icon, adjust file and tab behavior, reduce motion, or enable the Windows file menuGeneral
Adjust log fonts, spacing, colors, line numbers, separators, scrolling or double-click word boundariesLog reading
Edit color labels, selections, match styles and log-level rule groupsHighlights & annotations. Highlighting guide
Set matching options, per-file limits, match highlighting or search control sizesSearch. A limit of 0 allows all matches.
Record, clear or reset a key bindingShortcuts. Shortcut reference
Find recent files, manage temporary results and search history, or inspect and clear the index cacheHistory & storage
Change the team server address or user name and test the connectionCloud connection. Choose Test connection to connect. Cloud filters
Export or clear application logs, show frame timings or record a traceDiagnostics & performance
Check the version, build information, libraries and licensesAbout

Enable Show line numbers to adjust their width, colors and separators. Turning it off preserves those values. Pixel scroll distance also applies to wrapped lines when scrolling by whole lines is enabled only for unwrapped text.

Starting values

A new configuration uses Chinese and the light theme. Log text defaults to Consolas at 13 px with 6 px of extra line spacing. The line-number column starts at 60 px. Fonts are chosen from those available on the system, with a fallback if a saved font is missing. Existing file sessions can retain their own separators and line-number state.

Log reading → Wrap new files by default starts off. It sets the initial wrap mode for files without a saved session. Open tabs keep their current mode. When you reopen a file, it restores the wrap mode you last used, including changes made with W.

Search starts with case and regex off, match highlighting on and log-level coloring off. The toolbar and search field share a default control height of 30 px. Their font sizes can be set independently, and the controls grow to fit larger text.

Log reading → Scrolling → Show horizontal scrollbar and View → Horizontal scrollbar control the same preference across windows. Horizontal wheel navigation still works with it hidden. The notification switch is also in View. Messages from the current run remain available in the notification panel.

Keyboard shortcuts by task

简体中文 · Guide home

Start in the log. Press Ctrl+F / ⌘F, enter a query and press Enter. Click a result, then press M to mark the source line. For letter shortcuts, focus matters. Typing m in the search box adds a character to your query.

Focus example showing Enter in the query field and M or N after selecting a log row

Customizable defaults

These are the defaults for a new configuration. Help → Keyboard shortcuts opens the same category as Tools → Settings → Shortcuts. Select a binding and press the keys you want, clear it or restore its default. Resolve highlighted duplicates to apply the change.

ActionWindows / LinuxmacOS
Open a fileCtrl+O⌘O
Focus the main search fieldCtrl+F⌘F
Quick find in the last clicked log or result areaCtrl+Shift+F⌘⇧F
Toggle case sensitivityAlt+C⌥C
Jump to the end of the logCtrl+End⌘End
Toggle word wrapWW
Cycle the color of selected text or rowsCtrl+D⌘D
Add a text tag to one selected rowNN
Enter edit modeII
Close the active file tabCtrl+W⌘W
Open or close SettingsCtrl+,⌘,

Fixed commands

ActionWindows / LinuxmacOS
Mark or unmark selected rowsMM
Jump to a source lineCtrl+G⌘G
Jump to the start of the fileCtrl+Home⌘Home
Copy selected text or rowsCtrl+C⌘C
Copy rows with source line numbersCtrl+Shift+C⌘⇧C
Select all in the focused log areaCtrl+A⌘A
Reload the current fileF5F5
Open a new windowCtrl+Shift+N⌘⇧N
Open clipboard text as a temporary document, outside an inputCtrl+V⌘V or Ctrl+V
Save the document in the editorCtrl+S⌘S
Toggle full screenF11⌃⌘F or F11
  • Original log or results. Arrows move between rows. PageUp/PageDown move by a page. Shift with the arrows, paging keys or Home/End extends the selection. Ctrl+wheel changes log font size.
  • Quick find. Enter or F3 moves to the next occurrence, Shift+Enter or Shift+F3 to the previous one. Esc closes quick find.
  • Search-tab strip. Left/Right switches tabs, Home/End selects the first or last and Alt+Left/Right reorders. F2 renames, Delete/Backspace closes, Enter returns to the query.
  • Settings window. Esc or Ctrl+W / ⌘W closes the window. Valid preference changes save automatically.

Search scopes and quick find · Row marks and colors · Editing and saving

Interaction and focus

简体中文 · Home / 首页

Log text, current-file results and global results have separate focus, selection and viewport state. Commands act on the region actually focused, not merely the current search scope. Clicking a result reveals its source line while retaining the initiating region's command context.

Copy prefers the real text selection; otherwise it copies selected rows. Primary+Shift+C always includes source-line numbers. Primary+A selects the focused log region through compressed ranges; file-group headings do not count as log rows. M toggles marks across the selected source rows. N requires one source row. Cross-file color labeling is rejected rather than assigning a rule to the wrong document.

Double-click selects a word; whole-row and text selection remain distinct. Wrapping, font changes and result regrouping anchor to source identity rather than transient row indices. Follow tail can be disabled by deliberate navigation back into older content.

File-tab rename is a display-only change. Multiwindow copies use immutable state snapshots; a move closes its source only after successful installation with unchanged source state. Failed or changed-source transfers retain the source. Valid changes in Settings apply across windows and save automatically. History cleanup takes effect when confirmed.

Input controls retain their typing and copy/paste semantics. See shortcuts, search tabs and editing.

Troubleshooting

简体中文 · Guide home

Search returns fewer lines than expected

Start with a known result. Open the five-line sample, choose Current, press Ctrl+F / ⌘F to focus the main query field and turn regex off. Enter id=42, press Enter and select Matches only. With the whole file in scope and the per-file limit at 0, you should see source lines 1 through 5.

What do you see?What to check next
The previous query’s resultsCheck whether you submitted the new query or see a regex error. The last results remain available while a new search is queued or running.
Nothing, or just rows with a dotSelect Matches only and check for stray spaces. An empty query does not list the whole file. If quick find is open, close it with Esc and submit in the main query field.
Exactly lines 2, 3 and 4Right-click a source row, select Clear search limits and submit again. Compare line boundaries
Only the first few hits from each fileCheck the per-file limit under Settings → Search. Set it to 0 and submit again to see all matches.
The sample works but a file is missing from your investigationGlobal uses the participating files. In Directory, check the path, file types and subdirectories. The two-service exercise should give you two hits per file. Try the directory search

In the main search, literal retry|timeout finds either word. In quick find the same input looks for the words joined by an actual vertical bar.

Reading, editing and settings

SymptomWhat to do
The file grows but the view stays putBring its window and tab to the foreground, wait for indexing and turn on View → Follow end. After a rotation or rewrite in the middle of a file, use F5 for a full reload. Network drives can take longer to report events. Watch a sample line arrive
Characters or line endings look wrongInspect the detected encoding in Encoding and choose Detect and reload. Binary mode shows 16 bytes per row. For a report, record the encoding, BOM and line endings.
An edit will not saveIf another process changed the file, copy the edits you want to keep and reopen the file. For text the original encoding cannot represent, paste into a new UTF-8 file. Editing and saving
A shortcut does nothingClick the intended log pane, then check custom bindings and conflicts in Settings. On macOS check function-key behavior. M marks rows, N needs one source row, and W toggles wrap. Keyboard shortcuts
A settings change disappearsCorrect the invalid value or key binding flagged in Settings. Valid changes save automatically. If writing fails, choose Retry. Settings
A recent file will not disappear from historyCheck whether it is open, pinned, marked or annotated. These states protect the history record. Local data

Startup, network and updates

SymptomWhat to do
Windows reports a data-path errorCheck vclogg2-data-dir.txt beside the executable. If present, it must name an absolute, writable directory. Data locations
A new build looks like the old oneCheck the version and build time in About and the executable path. Starting another copy with the same data root can route the request to the existing process. Quit it before launching the intended build.
The operating system questions a packageUse the appropriate project release and inspect its origin and signing information. The current macOS package lacks Developer ID notarization. Windows signing depends on the release configuration. Choose a package
Building from source failsCheck the stable Rust toolchain, the platform prerequisites and Git dependency connectivity. Build at the repository root with the lockfile. Build instructions
Cloud registration or sharing failsCheck the server address, connectivity and registration policy. Sharing needs a server with filter-branch support. Cached pages are limited to earlier visits. Connection and sharing
Checking for updates opens the browserA manual check contacts the manifest service. A failed check shows a valid cached result and its check time, or opens Releases when there is no usable cache. If neither site opens, check DNS, proxy and certificate settings.

Report a reproducible problem

Include the version, OS and architecture, file size and encoding, the steps you took, and the expected and actual source lines. For example, “I searched the five-line sample for id=42 in Current scope, with limits cleared and a per-file limit of 0. I expected lines 1–5 and saw only line 1.” Replace those details with your observations. Open a GitHub issue

For timing problems, include elapsed time, line count, wrapping, search scope and match limit. Export application logs from Settings → Diagnostics & performance when relevant. Review sample text, paths, logs and crash reports before sharing. Keep state databases, cloud session files, cookies and signing credentials private. Performance recording · Historical measurements

Local data and privacy

简体中文 · Home / 首页

Normal reading, searches and annotations do not modify logs. Explicit editing and saving replaces source text, and export writes a chosen destination. Closing tabs or deleting ordinary history does not delete source logs.

PlatformData root
Windows portable / default DebugVCLogg2 next to the executable
Windows installedChosen during installation, default %LOCALAPPDATA%\VCLogg2
macOSSystem data/cache/temp directories; data normally ~/Library/Application Support/VCLogg2
LinuxSystem/XDG data/cache/temp directories

Windows vclogg2-data-dir.txt specifies an absolute data root. Missing means portable mode; invalid/unwritable means startup failure, not fallback. Windows instance routing is scoped to user and data root.

Stored records include sessions/vclogg2-state.db (SQLite settings, paths, searches and recovery), rebuildable indices, public cloud page caches, private cloud session JSON, crash reports and temporary documents. The database schema is documented in the architecture reference. Unix session directory/file permissions are 0700/0600; Windows follows data-root permissions. Session JSON has no extra encryption and is not stored in a system keychain.

Panic reports include build and platform information, thread details, source location, and a backtrace. Normal startup retains the latest 20 reports. The application log buffer holds up to 20,000 entries and 8 MiB. Startup and file-opening diagnostics also rotate on disk under logs/open in the application data directory. Application log exports can include both sources. VCLogg2 Privacy Notice

Exit all processes sharing the root before backup/migration, then copy the full data directory. Do not copy only a live SQLite main file and omit WAL. Storage settings can clear rebuildable indices; history cleanup protects open, pinned or annotated/marked records. Temporary-file cleanup validates application ownership and current use.

Before sharing diagnostics, inspect paths, searches, filters and log snippets for private content. Never attach raw cloud session files, Cookie/CSRF values, release credentials or an unreviewed state database.

Every manual update check contacts the website without sending log content. SQLite stores the manifest and last successful check time across restarts; failures preserve both. Failure shows a valid cached result with a connection warning and its time, never an up-to-date claim; without a valid cache, Releases opens. See update checks.

VCLogg2 Privacy Notice

简体中文 · Home / 首页

Local logs and application data. VCLogg2 reads, indexes, and searches the logs you open on your device. Browsing and searching use read-only access to source files. The app stores settings, recent file paths, search history, marks, session recovery data, indexes, and temporary results locally. Saving an edit writes to the source file. Exporting writes to the location you choose.

Diagnostics and cleanup. The app saves crash reports locally and records startup and file-opening diagnostics under logs/open in its application data directory. These diagnostics may contain command-line arguments, file paths, and runtime errors. The app does not upload these reports automatically. You can clear rebuildable indexes and application diagnostics in Settings. Uninstalling the Windows installer edition leaves the application data directory in place.

Update checks. When you choose Help → Check for updates, the app requests a version manifest from the project website over HTTPS. The request header includes the current VCLogg2 version. Open logs and search history stay on your device. You choose whether to download and install a new version. GitHub Pages hosts the project website, and GitHub logs visitors’ IP addresses for security purposes. GitHub Pages data collection · GitHub Privacy Statement

Optional cloud filters. Local search and filters work offline. When you use cloud features, the app connects to the configured server. Registration sends the employee ID or nickname you enter and a client identifier generated on your device. Depending on the action you take, the server also receives catalog queries, filter download records, or the names, matching rules, and notes you publish. Published content may be visible to other users of that service. The server operator manages server-side retention and access. The app stores session cookies and CSRF tokens in local session files without additional encryption.

Privacy questions and diagnostic sharing. You can raise general questions in the project’s public GitHub Issues. Before attaching diagnostics, review and redact file paths, log excerpts, and search terms. Keep session files and credentials private. Project issues

Project overview

简体中文 · Home / 首页

VCLogg2 is an Apache-2.0 desktop application for reading and searching large local logs. The current workspace uses Rust 2024 and GPUI Kit 0.7.1, with separate core, data and app crates. The optional server/ Go module provides cloud filter administration and distribution independently of the desktop build.

The application supports indexed browsing, current/global/directory searches, multiple file and search tabs, live refresh, annotations, result export, settings and session recovery. Explicit editing is available for supported files without a fixed file-size limit. The left navigation can show the file tree or the open tabs. Workspace guide

Use implementation status for boundaries, architecture to navigate code, and building for platform prerequisites. Release packages target Windows x64, macOS Apple Silicon and Linux x86_64; this is not a promise that every older operating system or graphics driver is supported.

Technology stack

简体中文 · Home / 首页

TechnologyRole
Rust stable / Edition 2024Desktop workspace and native executable
GPUI Kit 0.7.1Unified GPUI, component, base and asset APIs
Rayon, Aho-Corasick, regex, memchrParallel search, literal/regex matching, byte scanning
chardetng, encoding_rsDetection and legacy decoding
roaring / RoaringTreemapCompressed source-row sets
rusqlite with bundled SQLiteWAL, transactions, settings and schema migration
notify 7Active-document filesystem notifications
reqwest / Rustls / urlOptional cloud HTTP client
serde / JSON / UUID / SHA-256Stable identities, interchange and validation
windows-sys / objc2 / x11rbNative platform integration
Go + SQLite, Vue 3 / Element Plus / PiniaIndependent optional server and embedded admin UI
mdBook + GitHub Actions PagesDocumentation generation and hosting

rust-toolchain.toml selects stable with rustfmt/Clippy. Cargo.lock pins resolved dependencies; do not remove it for ordinary builds. The app directory is crates/vclogg-app, but the package selector is -p vclogg2.

Existing compatibility entries in root Cargo.toml are vendor/block (block 0.1.6 compatibility) and compat/xim-ctext (legacy 0.3.0 interface re-exporting the official 0.4.1 decoder). There is no current vendored GPUI component/base patch. The Go module and pnpm lockfile are independent of Cargo.

See architecture and building.

Architecture

简体中文 · Home / 首页

The Cargo workspace separates application presentation, file/search algorithms and durable storage. crates/vclogg-app builds package/binary vclogg2; use -p vclogg2 in Cargo commands.

crates/vclogg-app (vclogg2)
  ├── vclogg-core: files, indexing, decoding, search, compressed rows
  └── vclogg-data: SQLite, records, path encoding, cache lifecycle
server/: independent Go module + Vue administration UI
compat/xim-ctext/: legacy XIM decoder bridge
vendor/block/: existing macOS dependency compatibility patch
wiki/: bilingual mdBook sources
 doc/: existing website and assets

App composes core and data. Core does not depend on data/app; data does not depend on app. Neither core nor data owns GPUI entities. scripts/check-architecture.sh statically guards these boundaries.

Capability map

AreaSource and responsibility
Window compositionworkspace.rs, workspace/render_shell.rs, window_registry.rs: native windows, focus, external requests, shutdown snapshots
Document lifecycledocument_opening.rs, document_tasks.rs, document_lifecycle.rs: bounded preparation, install, reload, recovery
File tabstab_lifecycle.rs, tab_drag.rs, cross_window_tab_drag.rs, tab_motion.rs: activation, transfer, order, transitions
Search tabssearch_tabs.rs, search_tab_ui.rs, search_tab_order.rs, search_tab_activation.rs, search_tab_tasks.rs: per-tab state, queue and publication
Search executionsearch_orchestration.rs, search_limits.rs, quick_find.rs: scope, source ranges, committed queries and local find
Presentationlog_presentation.rs, viewport_orchestration.rs, log_viewport.rs, virtual_log_list.rs, virtual_log_lines.rs: visible rows, source identity, selection, wrapping
Settingssettings_dialog.rs, workspace/settings_window.rs, preferences.rs, highlight_preferences.rs: singleton settings window, draft preview and save
Explicit writesdocument_editing.rs, clipboard_paste.rs, result_export_flow.rs: editing, temporary clipboard documents and captured-result export
File enginecore document.rs, document/index_cache.rs, document/text_window.rs: immutable snapshots, positional reads, decoding and line indices
Search enginecore search.rs, search/cache.rs, result_set.rs, cancellation.rs: matching, cache, compressed source rows and cancellation
Persistencedata state_repository.rs, state.rs, path_codec.rs, index_cache.rs: transactions, stable DTOs, lossless paths and cache maintenance

Paths in the first seven rows are under crates/vclogg-app/src/; unqualified capability filenames are under workspace/.

File-association and command-line requests first foreground the last active window and yield a presented frame before looking up file ownership or changing tabs. Routing is deferred until the frame callback releases its window, so a temporary GPUI window lease is not mistaken for a missing window. An already-open file then activates its owning window, which also presents before document handling. External opens scroll the tab bar to reveal the active file tab, whether newly created or already open, using the same reveal mechanism as dropped files. A cold start presents the empty workspace before installing initial file tabs. Reopening the application without paths activates its existing window. New files immediately receive loading tabs, including during startup state restoration or another file load. File preparation begins after the loading shell has been presented; the shared loader remains bounded and preserves session restoration. Closing a queued tab cancels its pending open, and background completion preserves the current tab unless an explicit search navigation is pending.

On Windows, the forwarding process obtains the server PID from the connected named pipe and requests restoration/foreground activation of a visible, unowned window belonging to that process before transmitting file paths. A visible last-active popup is preferred for activation. Restore uses ShowWindowAsync, so the sender does not wait for the target's resize callbacks. The primary retains the routing above as a fallback when no window exists yet or Windows denies foreground activation; file ownership is still resolved by the primary. The forwarding process skips data-directory write probes and crash-report maintenance.

Pipe connection retries and the client exchange share a five-second deadline; each connected server exchange has a five-second deadline. Overlapped operations are canceled at expiry and their kernel completion is drained before buffers are released. Idle listening has no timeout. After acknowledgement, the server waits for a receipt or client disconnection within the remaining deadline instead of calling unbounded FlushFileBuffers; older clients can still close after reading the acknowledgement. Only a busy or not-yet-created pipe is retried before connection. Once transmission starts, a failed acknowledgement is not automatically retried, since the primary may already have accepted the request.

Data and state

StateRepository owns SQLite connections, SQL and migrations. Current schema: v24. App StateStore converts stable data records to presentation models; it does not own SQL. WAL and revision-aware session merging preserve unrelated updates from different windows. File paths use lossless native identity; display strings are not database identity.

After enabling WAL, migration acquires an immediate write transaction, reads the version again, and commits column changes, data backfills and the version update together. Failure rolls back the entire migration so a restart cannot skip an unfinished backfill. Search history receives increasing process-local save revisions on the foreground thread; background writers check the revision and write under a shared save lock, preventing stale window snapshots from overwriting newer history. Quit waits for window save tasks before applying pending history deletions from the settings window.

File state (marks, text tags, color rules) is shared by searches of that file. Search tabs own draft/committed queries, scope, row limits, result mode, selection, collapsed groups and viewport. One search runs per window, with other requests queued; completing a background tab does not activate it. Stale tasks must be rejected before publication.

Line indices and compressed result sets avoid retaining all decoded text. Visible-line reads, search snapshots and exports retain stable source-line identity. Incremental refresh has an explicit head/tail sampling limitation; see live logs.

Ordinary browsing and annotations do not write source logs. Explicit editing is a separate write path with no fixed file-size limit and with disk-version checks. Closing or renaming a tab changes workspace state, not the source filename.

The optional Go server is built independently. Its default signature requirement is not automatically compatible with the current desktop client's unsigned registration; see cloud filters.

Source: workspace modules, core, data repository.

Performance traces

ui_performance/trace.rs retains the application Recorder. trace/startup.rs begins CLI capture before platform initialization and attaches the foreground journal in the GPUI callback; the collector drains journal and task buffers every 50 ms. The independent writer in trace/live.rs waits 250 ms after draining. trace/stream.rs encodes batches of at most 2048 new completed events, replaces only the final JSON-array bracket, appends events and another bracket, and calls sync_data for each batch. Perfetto accepts truncated array tails, retaining complete events preceding a crash. Stop only drains the remainder, adds unfinished scopes and the final summary, then closes the file.

Capture owns Stream with its file handle, committed byte offset, event cursor, per-thread interval-edge indices and failed batch. Retries rewrite that same pending batch at its original offset without replaying committed history. Only new event Arcs and active scopes are cloned under short locks; sorting, serialization and I/O stay on background threads. Cache paths and timestamp/UUID names are unchanged; failed final writes retain state for retry. Active scopes produce instant observations about once per second, avoiding duplicate execution durations across periodic writes and final slices.

Application scopes register their starting thread and timestamp on entry. Completion moves them into the event buffer; freezing preserves active scopes and adds a GPUI boundary-task snapshot marked incomplete. Completed events and active scopes are bounded at 200,000 / 4,096, with losses in the summary. Skips, idle, power transitions and aggregated short polls use instant events; dirty-to-present and callback delivery latency use instant markers with elapsed durations rather than CPU-work slices. Application scopes cover startup, document preparation/indexing, search execution/publication, tab activation, visible-line loading and settings application. New scopes do not read the clock when capture is inactive. See cold-start options.

Each Capture explicitly retains the UI Rust ThreadId from the foreground callback (manual capture) or main (cold start). Export labels each thread track GPUI UI / Main or Background using that identity and includes the source Rust thread in event arguments. UI tasks and application scopes are not classified as background work based on their category. Each actual Rust thread maps to one tid. Each batch sorts chronologically with outer intervals first. Late crossing intervals are split against previously emitted boundaries and continue on the same thread without rewriting history, retaining source event IDs and original timing instead of creating synthetic threads. Frame latency uses instant markers with elapsed_us. Segment expansion is bounded and omissions are reported.

Debug and Release control timings both delegate to on-demand trace scopes; timing elements are not installed while recording is inactive. Threshold-based console diagnostics, contributor aggregation and the background HangDetector monitor were removed to avoid logging overhead in rendering. The ui-performance-profiler feature remains only as a compatibility alias for existing commands.

File-open INFO diagnostics

The dedicated vclogg2::open INFO channel starts at process entry and covers instance connection/retries, early sender activation, pipe I/O/timeouts/cancellation drain, UI delivery, window routing/restoration, activation events and frame callbacks, session loading, preview, full index preparation and installation. This diagnostic channel retains INFO even when the ordinary log level is Error or Off; other records still follow that setting.

A dedicated worker asynchronously writes logs/open/open-<UTC timestamp>-<PID>.log under the application data directory, rotating at approximately 8 MiB and retaining the latest 64 files on a best-effort basis. Forwarding processes also persist records and wait up to one second to drain on normal exit. Queue overflow, disk errors or abnormal termination can lose records; exports include the current process's dropped-record count. Activation and parsing threads do not wait for disk writes or cleanup. Settings' log export automatically appends recent diagnostic files, up to 16 MiB. Export promptly after reproducing; include relevant files from that directory if the export reports its size limit.

Correlate timestamps, PID, stage=<PID>-<sequence> and elapsed_ms. Windows receiver records link client_pid to the sender and request to UI delivery; subsequent batches correlate through paths, window IDs and time. queued/pipe ACK means only enqueued; scope_exit can also indicate failure or cancellation. open_install_result ready=true means the complete document was installed. frame_callbacks_complete marks subsequent frame callbacks, not confirmed desktop compositor presentation. Application logs cannot measure the interval between the OS double-click and process entry. Include the approximate double-click time, minimized state and whether multiple files were opened consecutively.

UI layout and stable IDs

简体中文 · Home / 首页

This current structural map preserves existing IDs. It is not a reproduction of every old control: the complete historical registry remains in Archive. IDs omitted here are reserved, not available for reuse. Repeated runtime instances share a semantic control ID; IDs are not list indices.

AppShell [A001] — Root / Workspace
├─ TitleBar [A002] — menus / 菜单
├─ FileToolbar [A011] — file commands / 文件操作
│  ├─ Open [A012] — 打开日志
│  ├─ Reload [A045] — 重新加载
│  ├─ Follow tail [A015] — 末尾跟随
│  └─ Path [A014] — 路径面包屑
├─ DocumentTabBar [A016] — horizontal file tabs / 横向文件标签
│  └─ DocumentTab [A017] — one instance per document / 每文档实例
│     └─ Close [A018] — 关闭当前标签
├─ WorkspaceBody [A004] — content / 内容
│  └─ DocumentSplit [A024] — resizable / 可调整分区
│     ├─ LogDataTable [A025] — virtual log / 虚拟日志
│     │  ├─ Marks [A051] — 行标记
│     │  ├─ Line numbers [A026] — 源行号
│     │  └─ Log text [A027] — 日志正文
│     └─ Search panel
│        ├─ SearchBar [A034] — scope and query / 范围与查询
│        │  ├─ Case [A036] — 大小写
│        │  ├─ Regex [A037] — 正则
│        │  ├─ Input [A035] — 查询输入
│        │  ├─ Search [A039] — 执行
│        │  └─ Clear [A038] — 清除
│        └─ SearchResultsPanel [A029] — results / 结果
│           └─ ResultDataTable [A032] — source rows / 源行
├─ StatusBar [A007] — search tabs and status / 搜索标签与状态
│  ├─ Collapse track [A804] — 独立收起搜索标签轨道
│  └─ All search tabs [A805] — 搜索标签列表
└─ Root overlays [A041] — dialogs and notifications / 弹窗与通知
   └─ Predefined filters [A198]
      └─ Cloud filters footer — available with or without a connection
         └─ Filter help [A831] — circled question mark at bottom left, opposite Close. Opens the usage guide

SettingsWindow [A094] — shared native window / 进程唯一原生窗口
├─ TitleBar [A800] — native close/resize / 原生关闭与缩放
├─ Sidebar [A309] — categories / 分类
│  ├─ Search [A310] — locate an option by name or keyword
│  ├─ Matching options [A828] — selecting a result reveals and highlights its control
│  └─ Navigation [A311] — shown when the search is empty
│     ├─ General [A312] — 通用
│     ├─ Log reading [A313] — 日志阅读
│     ├─ Highlights & annotations [A801] — 高亮与标注
│     ├─ Search [A314] — 搜索
│     ├─ Shortcuts [A318] — 快捷键
│     ├─ History & storage [A802] — 历史与存储
│     ├─ Cloud connection [A389] — 云端连接
│     ├─ Diagnostics & performance [A316] — 诊断与性能
│     └─ About [A395] — 关于
├─ Details [A319] — category content / 分类内容
│  ├─ General details — language, theme, application icon, files and tabs, and the Windows file context menu
│  ├─ Log preview [A824] — shared by reading and highlights / 日志阅读和高亮共用实时样例
│  ├─ Log reading details — each group shares a surface; values align at the trailing edge
│  │  ├─ Typography — font, size and line spacing
│  │  │  └─ Wrap new files by default [A829] — applies when there is no file session
│  │  ├─ Line numbers and separators
│  │  │  └─ Show line numbers [A095] — reveals gutter width, colors and separators
│  │  ├─ Log colors — text and background for the current theme
│  │  ├─ Scrolling [A240] — controls follow the selected wheel mode
│  │  │  └─ Show horizontal scrollbar [A826] — shared with the View menu
│  │  └─ Double-click word selection
│  │     └─ Word-boundary characters [A252]
│  ├─ Highlight details — tabs for color labels, selection style, search matches, and log coloring
│  ├─ Search details
│  │  ├─ Query matching [A249] — case and regex switches
│  │  ├─ Results and highlighting [A827] — per-file limit and match highlighting
│  │  │  └─ Match styles [A825] — opens the shared editor
│  │  └─ Search bar appearance [A556] — shared height and separate toolbar/field font sizes
│  ├─ Shortcut list [A156] — files and windows, search and find, reading and annotation
│  ├─ History & storage details — files, temporary results, search history, and index cache [A317]
│  ├─ Cloud connection details — server address, user name, and connection status
│  │  ├─ Test connection [A393] — requests a session from the configured server
│  │  └─ Connection help [A830] — circled question mark at bottom right, outside the scrolling form. Opens the setup guide
│  ├─ Diagnostics details — application log, rendering performance, and performance recording
│  └─ About details — version and build, technology stack, open-source libraries, repository link, author and licenses
└─ Actions [A553] — restore defaults / 恢复默认设置,保存失败时可重试

All nine categories use the same group headings and surfaces. Standard preference rows put the label and description on the left and the control on the right. A tinted background and leading accent mark the located option. The shared log preview stays above the scrolling reading and highlight details.

Autosave replaced the settings footer’s Cancel [A554] and Save [A555] buttons. Their historical IDs remain reserved.

Editing replaces log reading with an editor and hides the search panel; see Editing. Empty tabs show open/recent/recovery content. AI controls are removed; the workspace's left navigation can show a file tree or vertical tab list. Settings is a separate window, not inside the workspace overlay tree. Search-track collapse and search-panel expansion are independent.

The horizontal document tab bar [A016] is hidden only while the left navigation is visible, vertical tabs are enabled, and the tab list is selected. Hiding the sidebar or switching to the file tree restores [A016] while retaining the vertical-tab preference; showing the vertical tab list again hides the horizontal bar. This transition neither closes documents nor changes the active tab, and horizontal drop geometry follows the actual visibility.

New semantic controls introduced for this map:

WorkspaceBody [A004] (reference)
├─ Existing-file editor [A806] — document_editing.rs / EditorState
└─ New-file draft editor [A807] — document_editing.rs / NewFileDraft

A806/A807 document the explicit editor branches previously absent from the Wiki registry. Keep these IDs when their placement changes. Source ownership: workspace/render_shell.rs, tab_view.rs, search_tab_ui.rs, settings_window.rs, document_editing.rs, and settings_dialog.rs under crates/vclogg-app/src/ (workspace files under workspace/).

The text tag context menu reuses existing semantic IDs and is composed in workspace/row_tags.rs for the log body, local results and global results:

Text tag context menu
├─ Edit mark… [A569] — open the tag editor
├─ Delete mark [A572] — remove the selected text tag
└─ Clear all marks [A601] — remove all text tags in the owning file, including invisible rows; retain row marks, reuse history and other files’ tags

A601 also remains in the row’s “Text mark” submenu; it is disabled when there are no tags, the document is stale, a file is opening or the state store is unavailable.

Performance recording is in Settings → Diagnostics & performance, retaining its existing node IDs:

Performance recording [A808] — application Recorder; recording and saving continue after Settings closes
├─ Start recording [A809] — create a trace cache file, append new events in background batches
├─ Stop recording [A810] — stop collection, drain remaining events and close the file, without a path dialog
├─ Retry save [A811] — retry a failed final save to the same cache path
├─ Dismiss retry [A812] — release retained data without deleting saved files
└─ Open folder [A813] — open the trace cache directory, including during recording

Cold-start capture stops at its CLI deadline. Manual starts and stops are disabled during that capture; Open folder remains available. The recording path and write errors are displayed; failed writes retry automatically, and a failed final save allows retry or dismissal.

FileDropObserver / FileDropTarget [A128] — external drops and release-position routing
└─ FileDropOverlay [A130] — window-wide drag hint; ordinary drops open top-level files
   └─ IncludeSubfoldersDropTarget [A131] — folders only; the small central target highlights on hover and opens subfolder files recursively on release

Folder detection and enumeration run in the background. Entries are sorted by name within each folder; canonical directory identities prevent link cycles. Exit, cancellation, and release dismiss the hint.

Release notes include all upgrade versions when the source is strictly newer than the current version; otherwise they show the newest three releases. Cached results use the same selection:

Root overlays [A041] (reference)
└─ Release notes dialog [A814] — workspace/update_checks.rs
   ├─ Version and status [A815] — current and latest versions
   ├─ Release notes [A816] — selectable Markdown; standard dialog body scrolls
   ├─ Close [A817] — dismiss; Escape also closes and restores focus
   └─ Open download page [A818] — open the verified Release URL

For a successful remote response with an equal or older version, [A814] keeps the Check for updates title and [A815] shows “No updates available” with current/source versions. [A821] initially expands the newest three releases (all available entries when fewer than three exist; legacy manifests show only the latest release). Close [A817] and full release history remain available; the download action appears only when upgrades exist. Offline cached results show the same notes while retaining the availability warning and last check time.

The website manifest includes the full release body. Empty or legacy notes show an explicit fallback message. Failed checks without a valid cache open the Releases index.

The update dialog immediately shows “Checking for updates” [A819], independent of notification settings, and replaces its content with the result. Close or Escape dismisses it while pending; background work may finish caching, but will not reopen the dialog or launch the browser after dismissal.

Release notes dialog [A814] (reference)
├─ Version and status [A815] — current and latest versions
├─ Release notes [A816] — grouped by descending version
│  └─ Version disclosure button [A821] — stable version identity; newest three initially expanded
└─ View full release history [A822] — open the Releases index

The update dialog no longer shows a Version changes heading or a separate breaking-change/migration summary [A820]; the ID remains reserved. Current/latest versions are followed directly by the per-version release notes, preserving the original text and initially expanding the newest three versions.

Every check requests the remote manifest first. Failure with a valid cache shows the previous result in [A814]; [A815] uses “Previously checked source version”, never “Latest version” or “No updates available”. A newer cached version retains upgrade notes and downloads; otherwise the newest three releases, full history, and Close remain available.

Release notes dialog [A814] (reference, cached fallback)
├─ Connection failure and last successful check [A823] — local time with offset; availability is unverified
└─ Version and status [A815] — current and previously checked source versions

Implementation status

简体中文 · Home / 首页

This is a source reference for the workflows in the reader’s guide.

AreaCurrent behavior / boundary
Large logsIndexed virtual reading; memory and latency still depend on line count, encoding and line length
SearchCurrent file, selected open files and directory snapshots; independent search tabs; completion-only publication
Live refreshForeground window's active ready document only; head/tail sampling has a documented limitation
EditingExplicit full-text edit mode, no fixed file-size limit, disk size/time checks
SettingsOne settings window per process. Valid changes apply across windows and save automatically.
PersistenceSQLite schema v24; revision-aware session merging
CloudUUID/revision merge and cached browsing; desktop/server authentication compatibility must be checked
UpdatesManual checks request the remote manifest first; failures show a valid cache with a connection warning and last success time, never an up-to-date claim; no valid cache opens Releases; no automatic download/install
Removed featuresAI analysis, MCP and memory. The current left sidebar shows files or vertical tabs.
DocumentationMain-repository bilingual Markdown, mdBook, shared Pages artifact with the website

See UI acceptance and filter acceptance for manual review scenarios. Historical results are retained in the archive; they are not current test results.

Search performance and validation

简体中文 · Home / 首页

Core uses positional file reads, line indices, compressed source-row sets and parallel matching. Sparse directory results retain matching offsets; dense projections can share the full source index. Work scheduling is bounded and cancellation prevents new work from being acquired. Cache writing does not block result publication.

Repeated-query caching uses a process-local LRU bounded to 16 entries / 8 MiB of query and compressed-result data. Keys include source identity/content, encoding and query options. Reuse still validates the source; a cache hit is not a guarantee of zero disk I/O. Canceled or invalidated snapshots cannot become successful cached results.

Non-UTF-8 search uses bounded decoding batches; UTF-8 can borrow byte slices. Result limits preserve source order, with an extra match used to detect truncation. Parallel completion order must not choose which rows count as the first N. Ordinary UI searches publish complete results rather than partial progress previews.

Performance depends on file size, line count/length, encoding, storage, result density and parallelism. The fast-refresh middle-rewrite limitation is documented in Live logs.

Existing coverage lives in crates/vclogg-core/tests/, core document tests and workspace capability tests. Historical timings and test counts remain in the archive. No application benchmark or test was rerun for this migration; do not quote old timings as current measurements.

UI acceptance checklist

简体中文 · Home / 首页

These are manual review scenarios, not results executed for this documentation migration.

  • Open empty, small, very large and long-line logs; check visible-row reading, wrapping, font changes and source-line navigation.
  • Exercise current/global/directory search tabs, queued/canceled searches, reordering, limits and result-source navigation.
  • Copy text/rows, multi-select, mark, color and add/edit/drag text tags; verify no decoration leaks into export.
  • Append, truncate and rotate a foreground file; switch tabs/windows during refresh; verify follow and F5 recovery.
  • Change a setting, check the other window, then close and reopen Settings to verify autosave, window size and category focus.
  • Edit a supported small file, reject a changed source, cancel a dirty draft and save a new file without overwriting another.
  • Test platform shortcuts, input focus, window controls, high-DPI layouts and both UI languages.
  • Verify tab copies/moves, session recovery, protected history cleanup and temporary-result ownership.

Record source commit, platform, scenario and actual outcome separately. Historical acceptance boards and results remain in Archive.

Filter branch acceptance checklist

简体中文 · Home / 首页

Review against the intended desktop/server pair; these are scenarios, not a newly completed test report.

  1. Check unsigned desktop registration against the chosen server authentication policy and filter-uuid-branches-v1 capability.
  2. Download a new UUID and retain identity. Import identical content with a different UUID and retain both entries.
  3. Test remote-only updates, disjoint-field merges and conflicting edits to the same field; “resolve later” must preserve the baseline.
  4. Save as a new filter to create an independent UUID; local merging must not silently publish.
  5. Submit with a stale revision: fetch/merge without automatic retry publishing. Restore history as local pending changes.
  6. Delete a remote share while retaining the local filter; check owner/collaborator permissions.
  7. Disconnect and browse cached pages; prevent remote mutations and unsafe revision rollback.
  8. Restart and switch servers; verify server-isolated sessions and no credentials in SQLite/public caches or exports.

See Cloud filters and Archive.

Building from source

简体中文 · Home / 首页

Run commands from the main repository root, not wiki/. These are developer instructions; documenting them does not mean they were executed during migration.

Rust and source

Install Git and rustup, then:

git clone https://github.com/zhaiyanqi/vclogg2.git
cd vclogg2
rustup toolchain install stable --profile minimal --component rustfmt --component clippy
rustc --version
cargo --version

The repository selects stable, Rust 2024 and GPUI Kit 0.7.1. Keep the committed Cargo.lock and use locked builds.

Windows

Install Visual Studio 2022 Build Tools with Desktop development with C++ and Windows SDK. Use the x64 MSVC Rust toolchain:

rustup toolchain install stable-x86_64-pc-windows-msvc --profile minimal --component rustfmt --component clippy
powershell -ExecutionPolicy Bypass -File scripts/build-debug.ps1
.\target\debug\vclogg2.exe
# Release
powershell -ExecutionPolicy Bypass -File scripts/build-release.ps1

scripts/run-debug.ps1 runs cargo run -p vclogg2 --locked. Packaging also requires Inno Setup 6.3+ (6.x) and ripgrep:

winget install --id JRSoftware.InnoSetup --exact --source winget
# With Chocolatey available, as in Windows CI:
choco install ripgrep --yes --no-progress

Reopen the terminal after installation if PATH has changed.

macOS

Install Xcode and Command Line Tools. For a standard Xcode installation:

xcode-select --install
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
xcodebuild -version
./scripts/build-debug.sh
./target/debug/vclogg2
# Release
./scripts/build-release.sh
# Packaging dependency, with Homebrew installed:
brew install ripgrep

Complete Xcode's first-run setup/license if required; skip Command Line Tools installation when already present. Actions uses macOS 15 ARM64. resources/macos/Info.plist supplies language declarations for both executable and packaged app; native menu language is selected at startup.

Linux (Ubuntu / Debian)

sudo apt-get update
sudo apt-get install --yes --no-install-recommends   build-essential clang cmake libfontconfig-dev libglib2.0-dev libssl-dev   libvulkan1 libwayland-dev libx11-dev libx11-xcb-dev libxcb1-dev   libxkbcommon-x11-dev pkg-config ripgrep
./scripts/build-debug.sh
./target/debug/vclogg2
# Release
./scripts/build-release.sh

The release runner is Ubuntu 22.04 x86_64. Running requires a graphical desktop and compatible rendering drivers; successful compilation does not validate a VM or remote desktop GPU path.

Scripts and verification levels

Script (.sh / .ps1)Operation
build-debugcargo build --workspace --locked
build-releasecargo build --workspace --release --locked
checkfmt + cargo check --workspace --all-targets --locked + strict Clippy
check-architecture.shStatic crate/module boundary checks, no compilation

Outputs are target/debug/vclogg2 or target/release/vclogg2 (.exe on Windows). Bash scripts locate the root; use the root as working directory for PowerShell.

Static checks:

cargo fmt --all -- --check
git diff --check
bash scripts/check-architecture.sh

When compilation/testing is intended, run ./scripts/check.sh (PowerShell: scripts/check.ps1) and separately cargo test --workspace --locked. Compilation, automated tests, packaging, performance benchmarks and real-window acceptance are distinct checks.

Optional server

server/ has its own Go module and pnpm lockfile. It requires Go 1.24+, Node.js 22.12+ (CI uses 24), pnpm 11.9.0, tar and, on macOS/Linux, zip. It does not require Rust/GPUI.

macOS with Homebrew:

brew install go node@24 zip
export PATH="$(brew --prefix node@24)/bin:$PATH"
npm install --global pnpm@11.9.0
./scripts/package-server-release.sh

Windows with winget (reopen the terminal after Go/Node installation):

winget install --exact --id GoLang.Go
winget install --exact --id OpenJS.NodeJS.LTS
npm install --global pnpm@11.9.0
powershell -ExecutionPolicy Bypass -File scripts/package-server-release.ps1

Linux: install Go and Node.js 24 for your architecture, then:

sudo apt-get update
sudo apt-get install --yes ca-certificates curl python3 tar xz-utils zip
npm install --global pnpm@11.9.0
go version
node --version
./scripts/package-server-release.sh

Packaging installs frozen pnpm dependencies, typechecks and rebuilds the embedded admin UI, then builds Windows/Linux amd64 with CGO_ENABLED=0, -mod=readonly, -trimpath and stripped symbols. Optional verification commands are pnpm --dir server run typecheck, go -C server vet ./... and go -C server test ./...; Windows server/scripts/verify.ps1 also performs real builds/resource consistency checks.

See release packaging and documentation-only builds.

Cold-start performance capture

Quit all VCLogg2 instances and launch an existing executable (this does not build):

./target/release/vclogg2 --trace-startup --trace-duration 15

The Debug profile sets opt-level = 3 for gpui-component and gpui-base, matching the already optimized GPUI runtime to reduce unoptimized framework work such as component initialization. Application code keeps its default Debug optimization level. The first rebuild recompiles these dependencies, and optimization may affect stepping through their internals. Release is unchanged.

Startup.initialize_services covers service registration only; window creation is recorded separately under Startup.open_workspace_window and its child scopes. Older traces include window creation in the service scope, so a shorter scope alone does not demonstrate a performance improvement.

On Unix, startup retries binding immediately after the first stale instance socket cleanup. Repeated cleanups and other connection failures retain the 40 ms backoff and the overall 5-second timeout. Startup.cleanup_stale_instance_socket identifies cleanup that actually occurred.

Use ./target/release/vclogg2.exe on Windows. Debug supports the same options. --trace-startup is now a flag with no output-path argument; remove that path from older commands. --trace-duration accepts integer seconds from 1 to 600, defaulting to 15. Append -- service.log to open logs, quoting paths with spaces. If another instance is running, normal forwarding applies and cannot capture that process's startup.

Manual and cold-start recordings save automatically into the application's trace cache with timestamp-and-UUID filenames. macOS/Linux use VCLogg2/traces under the system cache (or the isolated Debug cache root); Windows uses cache/traces under the configured data root. Settings → Diagnostics & performance → Performance recording → Open folder is available during recording.

An independent writer sorts and encodes batches of at most 2048 new events, appending to the same JSON file, then waits about 250 ms after draining; busy disks can extend this interval. Stop drains remaining events, unfinished scopes and the final summary, synchronizes and closes the file without rewriting history. Files are not automatically deleted.

New files are top-level JSON event arrays (format_version=2); older {"traceEvents":[...]} objects remain readable by Perfetto. Each batch replaces only the final one-byte ] and appends new events and another ], leaving committed events untouched. Completed batches are valid JSON. If a crash interrupts a write, Perfetto's array parser can retain preceding complete events even when the final event or closing bracket is truncated. This tolerance is specific to Perfetto; strict JSON readers may reject an interrupted file. Each batch calls sync_data. Events not collected, still in memory, or only partially written may be lost; power failures and storage faults are outside this guarantee. See Perfetto JSON support and its truncated-array parser.

Manual capture uses Start recording / Stop recording. Write errors are shown and retried automatically. Failed final saves retain data for Retry save; Dismiss retry releases memory without deleting existing files. Cold-start capture stops automatically; when Settings is open it also displays write errors and retains failed final data for retry. The terminal reports the final cold-start save result.

Open JSON in Perfetto UI. Inspect Startup.*, Document.*, Search.*, Tab.*, Viewport.*, Settings.apply and control timings. About once per second, capture appends a Recording checkpoint (recording=true) and instant observations of active application scopes (category Application active scopes, active_scope_id, original_ts_us, elapsed_us, incomplete=true). Do not sum these observations as execution time; completed slices share active_scope_id for correlation. Stop emits clipped X slices for still-active scopes and a final Recording summary (recording=false). Use the last checkpoint when a crashed recording has no final summary.

Capture retains up to 200,000 completed events and 4,096 active scopes, continuing summary and loss reporting after saturation. Execution segments and active observations share a 404,096 limit; metadata and periodic summaries are exempt. lost_events includes capture and export loss, so do not add omitted_export_segments again. Counts describe only the checkpoint's observation time.

Each actual Rust thread has one track: GPUI UI / Main or Background. Event arguments thread_role / source_thread retain identity; tids are export mappings, not OS IDs. Crossing intervals continue as segments on the same track, with source_event, continued, split and original_duration_us. Frame latency is an instant with elapsed_us. Export is bounded to 404,096 segments; pending work beyond the limit is included in omitted_export_segments and lost_events.

cx.spawn still executes on the UI thread. Inspect long Draw, Application, GPUI tasks and input slices. Durations are elapsed wall time including waits, not CPU samples; task locations are spawn sites, not complete call stacks. Gaps alone do not prove idle time or stalls, and nested slices are not additive CPU time. Background resource contention, GPU work and presentation delays may also cause stutter; OS scheduling and GPU execution are not captured.

Performance overlay and console logging

The former slow-task warnings, rendering contributor logs and dedicated monitoring thread have been removed. Debug and Release use on-demand trace scopes; ordinary application error logging is unchanged. VCLOGG2_UI_PERF_WARN_MS / VCLOGG2_UI_PERF_REPEAT_MS no longer apply.

The isolated Windows Debug launcher remains available: powershell -ExecutionPolicy Bypass -File scripts/run-performance-debug.ps1. It runs cargo run -p vclogg2 --locked --target-dir target/perf-debug, setting RUST_BACKTRACE=full and VCLOGG2_DEV_DATA_DIR (default target/perf-debug/local-app-data, overridable with -DataDirectory). It no longer accepts -WarnAfterMilliseconds / -RepeatAfterMilliseconds. Enable the overlay or record traces in Settings → Diagnostics & performance. This command builds and launches the app.

In the pinned dependency, overlay MAX is the maximum elapsed time in milliseconds between begin_draw and end_draw across the current window's latest 1000 draw samples (or fewer). This measures the UI-thread Draw phase, not the longest task across the entire main thread, frame intervals or GPU execution time. Stalls in input handling, tasks or presentation outside Draw may not appear in this value; inspect the trace as well.

Build and release

简体中文 · Home / 首页

Build prerequisites are in Building. All desktop packages use the same Cargo.lock and native platform runners. Package scripts currently bundle ripgrep and its license even though AI features have been removed.

PlatformRoot-level commandOutput
Windows x64powershell -ExecutionPolicy Bypass -File scripts/package-release.ps1dist/windows-x86_64/, portable ZIP and Inno Setup EXE
macOS ARM64./scripts/package-release-macos.shdist/macos-aarch64/, DMG
Linux x86_64./scripts/package-release-linux.shdist/linux-x86_64/, tar.gz
Server Windows/Linux amd64./scripts/package-server-release.sh or PowerShell equivalentdist/server/, ZIP, tar.gz and SHA256SUMS

Windows user packages are vclogg-<version>-windows-x86_64-portable.zip and vclogg-<version>-windows-x86_64-setup.exe; macOS/Linux use the vclogg2- prefix. The optional Windows PDB symbols package is for developer diagnosis, not user installation; actual symbol availability depends on the build profile and packaging output.

Installation and signing

Windows per-user installation separates program and data locations, writes vclogg2-data-dir.txt, and preserves data on uninstall. Silent installation can specify /DIR="D:\Apps\VCLogg2" /DATADIR="D:\VCLogg2Data". Moving the data location does not copy existing data. -InnoSetupCompiler selects a nonstandard ISCC path.

Windows signing modes: None produces unsigned packages; Pfx signs the program then installer using configured certificate/password/timestamp inputs; PreSigned -SkipBuild requires an already signed application and the newly generated installer still needs signing. Actions selects unsigned, PFX or Microsoft Artifact Signing via WINDOWS_SIGNING_PROVIDER. Signed branches verify the application extracted from the ZIP and the installer Authenticode chain and RFC 3161 timestamp. Package names do not encode signing status; the generated uninstaller is not separately signed.

macOS Actions packages are ad-hoc signed without Developer ID/notarization. Linux packages include a per-user installer, desktop integration and MIME registration. See Installation for upgrade/data behavior.

Version and publishing

The Cargo package version remains a placeholder. Release builds resolve v<SemVer> tags or VCLOGG2_BUILD_VERSION; untagged builds follow the repository's development-version rules.

For an intentional release, commit/push a clean main first, create a tag at that commit, then use the release helper (replace the example version):

git tag -a v2.0.8 -m 'VCLogg2 v2.0.8'
./scripts/publish-github-release.sh v2.0.8

The helper requires clean main equal to origin/main, checks the tag, runs scripts/check.sh, and pushes the tag. --yes skips its interactive confirmation; --remote selects another remote. Pushing v* triggers the multiplatform workflow and creates a Release with desktop and server assets. Manual workflow dispatch selects all/desktop/server and uploads Actions artifacts without creating a Release. Ordinary main pushes do not run the manual-only application CI; documentation paths trigger Pages.

Release notes derive English/Chinese sections from complete commit messages, with historical translations in scripts/commit-translations.json. Categories, ordering, commit links and a comparison link are preserved across languages. See Contributing.

Update checks

Help → Check for updates requests https://zhaiyanqi.github.io/vclogg2/latest.json first on every check, without a 24-hour cache shortcut or failure backoff. Success compares versions by SemVer precedence and replaces the cache and success time. Only strictly newer versions show notes and downloads; equal or older remote versions show “No updates available”. Failure falls back to a valid cached result, showing a connection warning, the last successful check in local time with a time-zone offset, and unverified update availability. Cached versions are never labeled “Latest version” or used to report “No updates available”. A strictly newer cached version still offers notes and its download page. Failures preserve the previous result and success time; without a valid cache, the dialog reports failure and opens Releases. SQLite preserves the cache across restarts, with an in-process fallback when storage is unavailable. Windows share an in-flight check. Connection timeout is 5 seconds and total timeout is 10 seconds, with no automatic retry; users can check again. No startup checks or automatic downloads or installation.

Pages generates _site/latest.json using the workflow token to read the latest published stable GitHub Release. It validates the stable tag, publication time, official URL and all four desktop packages; main’s placeholder version and prereleases are excluded. Generation failure prevents deployment and preserves the previous website. Release publication, edits and deletion trigger deployment, as does a successful tag release build via workflow_run (covering releases created by GITHUB_TOKEN). Only deployment calls the Releases API; clients need no token.

Server packaging

Use --version v2.2.14 / -Version v2.2.14 to override version and --client-key-file /path/to/client-public-key.json / -ClientKeyFile for an optional public key descriptor. VCLOGG_CLIENT_KEY_ID and VCLOGG_CLIENT_PUBLIC_KEY are equivalent paired inputs. Packages contain executable, example config, README, LICENSE and VERSION, not runtime databases or private keys. The admin UI and migrations are embedded; Node.js is a build-time dependency.

Server support for update feeds does not mean this desktop client uses them. Desktop checks use the static website manifest described above. The server's signed-registration default also needs reconciliation with the current unsigned desktop registration; see Cloud filters.

Source: release workflow, scripts.

Clicking Check for updates immediately shows a pending dialog regardless of notification settings; completion replaces its content with release notes or “No updates available”. If dismissed while pending, background work only completes caching and does not show results or open the browser.

Cross-version release history

Deployment paginates through GitHub releases, excludes drafts, prereleases and non-stable SemVer tags, and retains the highest 30 stable versions in descending SemVer order. The latest release still requires all four desktop packages. The manifest preserves legacy top-level fields and adds releases and history_complete. Clients validate ordering, duplicate versions, URLs and the 30-entry limit, with an 8 MiB response limit. Oversized or invalid manifests stop deployment rather than truncating notes.

One client request supplies all available releases newer than the installed version through the latest version. The newest three are expanded initially; every version can be expanded or collapsed independently. Up-to-date or newer installed builds show only the latest release. Versions older than the retained history get an explicit partial-history notice and a View full release history action; legacy single-version feeds also receive conservative coverage notices.

The manifest retains extracted breaking-change and migration fields for older clients. Authors must use Breaking Changes / 不兼容变更 and Migration / 迁移 headings. Generation preserves these sections and conservatively collects complete paragraphs or list blocks containing related keywords, without rewriting or summarizing them. Requirements absent from the published notes cannot be inferred; release authors must record them explicitly.

Release-note language

The manifest stores per-release body and important notes in localized_notes, keyed by zh-CN and en. Generation splits the Release’s ## 简体中文 / ## English sections without automatic translation and retains the mixed-language fields for older clients. The current application language selects the release body. Both languages share one request and cache, so switching languages needs no new network request. Legacy feeds and caches are parsed by language headings; missing or unrecognized translations produce an explicit notice rather than mixing in another language. Missing translations show a notice within that version directing users to its original release page.

When a newer version is available, the update result shows current/latest versions followed by per-version release notes, without an extra Version changes heading or a separate important-change summary. Breaking changes and migration details remain in the original per-version body. Important-note fields remain in the manifest for older clients.

VCLogg2 Code signing policy

简体中文 · Home / 首页

This policy covers Windows desktop releases distributed through GitHub Releases, including the setup.exe installer and vclogg2.exe inside the portable ZIP. Signing status can vary by release. For signed files, the signer is shown on the Digital Signatures tab in Windows file properties. Official releases

VCLogg2 plans to use SignPath’s code signing service for open-source projects. Once enabled, signing requests will use artifacts built by GitHub Actions from the project’s public source code. A designated approver will review each release signing request. Maintainers involved in this process must enable two-factor authentication on GitHub and SignPath. A designated reviewer reviews external contributions before they are merged.

RoleMaintainer
Committerzhaiyanqi
Reviewerzhaiyanqi
Signing approverzhaiyanqi

See the VCLogg2 Privacy Notice for details on how the desktop application handles data.

Contributing

简体中文 · Home / 首页

Keep changes within the ownership boundaries in architecture. Update paired English/Chinese documentation when changing behavior, settings, module ownership, scripts or deployment. Keep stable UI IDs when moving or renaming controls.

Use an English Conventional Commit subject, for example docs(wiki): migrate bilingual documentation, followed by matching English: and 中文: body sections. Enable the repository template with:

git config --local commit.template .gitmessage

Report checks actually run. git diff --check and bash scripts/check-architecture.sh are static checks. scripts/check.sh compiles analysis and runs Clippy; application builds, tests, benchmarks and real-window acceptance are separate activities. See building for commands.

Do not commit runtime databases, cloud session files, private keys or local collaboration notes. Existing compatibility patches are documented in technology; use upstream public APIs for ordinary application changes.

Documentation maintenance and GitHub Pages

简体中文 · Home / 首页

How the reader’s guide is organized

The sidebar starts with a walkthrough and groups everyday tasks before troubleshooting and developer reference. This follows the audience-based entry points in the OBS Studio Wiki and the topic sections in the qBittorrent Wiki.

For feature pages, pair an action with the result the reader should see. The opening walkthrough uses a single five-line log so the reader can compare source lines, query and results. The illustrated steps in the OBS Quick Start Guide and the selection examples in the Wireshark User’s Guide informed this format.

Both languages share three sample files and keep their own labeled illustrations in images/. When changing the five-line log, check the expected hits, marked row and live-append exercise together. When changing gateway.txt or payments.txt, check the directory hit counts, the four timestamps in each merge illustration and the time difference given in the text.

Choice of documentation system

“Get book” likely refers to GitBook. Its current product offers hosted documentation with GitHub/GitLab sync. That sync is not the same as building a static artifact in this repository for GitHub Pages.

ApproachExample / deploymentFit here
mdBookThe Rust Programming Language and mdBook's own guide; Markdown → static HTML → PagesChosen: Rust ecosystem, navigation/search, no frontend package tree
DocusaurusDocusaurus documentation; Node build → static output → PagesGood for richer React documentation; more configuration/dependencies
GitBookHosted docs with repository syncUseful hosted editing, but not needed for a same-repository Pages artifact

Sources: mdBook introduction, mdBook CI, Docusaurus deployment, GitBook Git Sync, GitHub custom Pages workflows. Reviewed 2026-10-11; this project pins mdBook 0.4.52 for reproducibility, not as a claim that it is the newest release.

Source and output

wiki/README.md          repository documentation entry
wiki/en/               English pages, SUMMARY.md, book.toml
wiki/zh-CN/            matching Chinese pages, SUMMARY.md, book.toml
wiki/archive/          original Wiki snapshot + SHA-256 manifest; not published
doc/                   existing website and assets
scripts/build-docs.py   validate, build both books, merge website, check output
_site/                 generated Pages artifact, ignored by Git

Every current page has an explicit link to the same topic in the other language. Keep filenames and chapter order paired; Markdown links work in the repository and mdBook converts them to HTML links. Archive records remain in their original language as historical evidence.

Local build and preview

Install Python 3.9+ and mdBook 0.4.52 from its official release, or install the documentation tool using Cargo:

cargo install mdbook --version 0.4.52 --locked
python3 scripts/build-docs.py
python3 -m http.server 8000 --directory _site

Open http://localhost:8000/wiki/, then choose English or 简体中文. On Windows use py -3 if python3 is unavailable. MDBOOK may specify the executable path. For source-only validation without mdBook, run python3 scripts/build-docs.py --check.

This builds documentation only. It does not build, test or start the desktop/server application. Output is regenerated under _site/; keep source changes in wiki/ and doc/.

Deploy to the existing Pages site

In repository Settings → Pages → Build and deployment, select GitHub Actions. The github-pages environment must allow main. Merge/push changes to main, or manually run Deploy GitHub Pages. The workflow:

  1. Checks out the main repository (no Wiki clone).
  2. Installs the pinned mdBook Linux binary and checks its SHA-256.
  3. Runs the source checks, builds both languages and copies the website into one _site/ artifact.
  4. Uploads that single artifact and deploys it using the existing Pages environment.

Pull requests touching documentation also build/check the site, without deployment permissions. Push/manual deployment requires pages: write and id-token: write; no personal access token or separate gh-pages branch is required.

Expected URLs after deployment:

  • Website: https://zhaiyanqi.github.io/vclogg2/
  • Language chooser: https://zhaiyanqi.github.io/vclogg2/wiki/
  • English: https://zhaiyanqi.github.io/vclogg2/wiki/en/
  • Chinese: https://zhaiyanqi.github.io/vclogg2/wiki/zh-CN/

The landing page and documentation must be deployed together: a second Pages deployment would replace the first artifact. The workflow triggers on doc/**, wiki/**, the docs build script and the workflow itself. Do not add credentials or runtime files to these public source directories.

The GitHub Wiki publishes the same guides separately. Chinese chapters retain their existing page names. English pages use the EN- prefix. When publishing changes there, update the sidebar from both summaries and include the illustrations and sample logs in the Wiki repository. After publishing, check a chapter in each language, an image and a sample from the live Wiki. GitHub Wiki · Historical pages

Updating content

Use current code as the source for behavior, dependencies and module ownership. Change both language pages and SUMMARY entries together; preserve UI IDs. Keep historical test results in the archive and identify newly executed checks accurately. Build scripts and release documentation must agree. Run source validation and a full documentation build before publishing.

The repository Pages API was checked on 2026-10-11: its build type is already workflow (GitHub Actions). No settings change was made.

Migration and historical records

简体中文 · Home / 首页

All 36 original Markdown pages and their assets were copied from GitHub Wiki commit 8a182a4769901014c9df24e88d57a2902cafdde0 on 2026-10-11 into the main repository's wiki/archive. A SHA-256 manifest records every imported file. The copy contains no .git directory or submodule.

The original records remain in their original language and include retired features, historical implementation notes, acceptance results and the complete former UI ID registry. They are evidence of earlier states, not current instructions, and are excluded from the published book and search index. Current English/Chinese pages are maintained in parallel, with the same chapter names.

The GitHub Wiki now serves these bilingual guides at the original chapter addresses. Retired chapters link to their archived originals. The Markdown under wiki/en/ and wiki/zh-CN/ in the main repository is the source for both editions. GitHub Wiki