Skip to content

Log Messages

radj307 edited this page Nov 11, 2023 · 10 revisions

Volume Control uses logging to help assist with debugging and provide information about any errors that occur.
All log messages have an event type, which specifies the general importance and/or purpose of a message.
The event type is also used for filtering messages to improve readability and prevent unnecessary write operations.

When including your log file in an issue report, you should enable all event types in the log filter so that all messages are visible.

Enabling all Log Messages

There are two ways to change the log filter:

  1. Through the application.

    In the main window, click Settings → Event Logging → Filter and check all of the boxes.

  2. Editing VolumeControl.json manually.

    If you used the installer, press Win+R to open the run dialog and enter the following path:
        %LocalAppData%/radj307/VolumeControl/VolumeControl.json
    If you use the portable version, the config file is in the same directory as VolumeControl.exe.

    ⚠️ Note: Before saving your changes, make sure the application isn't running.

    To enable all filter levels, find the LogFilter line near the bottom and change it to 127:

    "LogFilter": 127,

Why aren't all log messages shown all the time?

In short: performance & readability.

Event Type Reference (6.6.0)

The EventType enum is a bitfield that is a combination of any of the following values:

Event Type Value
NONE 0
DEBUG 1
INFO 2
WARN 4
ERROR 8
CRITICAL 16
FATAL 32
TRACE 64
ALL 127
Clone this wiki locally