Valheim
Install with App

Details

Latest version
0.0.4
Last Updated
First Uploaded
Downloads
3K
Likes
1
Size
57KB
Dependants
ADDatHost Valheim hosting
30% off

UnityLogViewer

An in-game log viewer overlay for any BepInEx 5 Unity game, designed to help with debugging while developing mods.

Features

  • Real-time in-game log overlay showing the BepInEx log: every mod's output plus Unity's own
  • Draggable, resizable window
  • Live text filter with regex support
  • Auto-scroll to keep up with new log entries
  • Pin mode to lock the window in place and hide decorations for an unobtrusive heads-up display
  • Configurable syntax highlighting with 8 color-coded regex rules (errors, warnings, debug, etc.)
  • Adjustable background opacity
  • Font selector with a preview of each font, where the game can load the system's fonts

Tested with Valheim 1.0 and PEAK. It should work in other Unity games that run BepInEx 5 (Mono builds of Unity 2018 or later), but hasn't been tested in them yet.

Installation

Thunderstore / r2modman

  • Install via Thunderstore Mod Manager or r2modman.
    -or-
  • Download the mod from Thunderstore (Valheim, PEAK), and follow the Manual Installation instructions below.

Nexus Mods / Vortex

  • Install via Vortex Mod Manager.
    -or-
  • Download the mod from Nexus Mods, and follow the Manual Installation instructions below.

Manual Installation

  1. Install BepInEx 5 for your game.
  2. Download the latest release of UnityLogViewer from GitHub.
  3. Extract the contents of the zip's plugins folder (UnityLogViewer.dll) into your BepInEx/plugins directory.

Usage

Press F7 (default) to toggle the log viewer window. The window displays the most recent log output (500 lines by default, configurable via BufferSize).

  • Filter — Type in the filter bar to show only matching lines. Supports regular expressions; falls back to plain text search if the regex is invalid.
  • × — Clears the current filter.
  • Clear — Clears the current buffer.
  • Auto-scroll — When enabled (default), the view automatically scrolls to the latest log entry. Toggle it off to freeze the view and scroll manually.
  • Pin — Click the pin button in the title bar to lock the window in place. Pinned mode hides the title bar, filter bar, and resize handle, leaving only the log text over a transparent background. Click the unpin button in the top-right corner to restore the full window.
  • Resize — Drag the handle in the bottom-right corner of the window to resize.
  • Drag — Drag the title bar to reposition the window.
  • Font — Shown when the game can load fonts installed on your system. Click it to list them, each with a sample line; pick one to switch the log text to it, or click the Font button again to close the list.

Configuration

The config file com.malafein.unitylogviewer.cfg is generated in your BepInEx/config folder after the first run. Settings can also be changed in-game via Configuration Manager.

General

Setting Default Description
ShowWindow false Toggle the log viewer window on/off. Use this if the hotkey doesn't work with your game's input system.
ToggleShortcut F7 Keyboard shortcut to toggle the log viewer.
Filter (empty) Persistent filter string (supports regex).
FontName (empty) Font to use for log text. Leave empty for the default UI font. If the game can load fonts installed on your system, a selector appears in the log viewer window. Windows builds (including under Proton) usually can; native Linux builds of Unity games usually find none.
BackgroundOpacity 80 Background opacity of the log window (0–100).
Pinned false Pin the log view in place, hiding window decorations and disabling interaction.
BufferSize 500 Maximum number of log lines to keep in the buffer (100–5000).

Window

These values are saved automatically when you finish moving or resizing the window, so your preferred layout is preserved between sessions. The window is kept on screen, so a layout saved on a larger monitor is pulled back into view.

Setting Default Description
WindowX 40 Horizontal position of the window (pixels from left).
WindowY 40 Vertical position of the window (pixels from top).
WindowWidth 900 Width of the window in pixels.
WindowHeight 300 Height of the window in pixels.

Highlighting

Eight configurable highlight slots let you color-code log lines by pattern. Each slot has a pattern and a color setting. The first matching rule wins.

Setting Default Description
Highlight1Pattern \[ERROR\]|\[FATAL\] Regex pattern for highlight rule 1.
Highlight1Color red Color for highlight rule 1.
Highlight2Pattern \[WARNING\] Regex pattern for highlight rule 2.
Highlight2Color yellow Color for highlight rule 2.
Highlight3Pattern \[DEBUG\]|\[DBG\] Regex pattern for highlight rule 3.
Highlight3Color cyan Color for highlight rule 3.
Highlight4Pattern \[INFO\] Regex pattern for highlight rule 4.
Highlight4Color white Color for highlight rule 4.
Highlight5–8 (empty) Additional slots available for custom rules.

Colors can be specified as a named color (red, yellow, cyan, green, blue, magenta, orange, white) or a hex value (#RRGGBB). A rule with an unrecognized color is skipped, with a warning in the log.

Changelog

See CHANGELOG.md for version history.

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.