Diagnostic logging: INFO, DEBUG, and TRACE¶
tr4w.log is the diagnostic log, not the SQLite contest database or a Cabrillo submission. Changing its verbosity changes the detail recorded about program activity; it does not change the number of contacts saved.
Change the log level¶

- Open Preferences with Ctrl+J and select Logging.
- Choose the required Log level:.
- Apply/save the change. The running logger updates without a restart. Merely selecting a value marks the form as changed; canceling it does not apply that selection.
- Reproduce the issue and note its time and the steps you took.
- Use Open log file on the same panel to open the active file. Return the level to INFO after gathering the needed detail.
| Level | Intended use |
|---|---|
| NONE | Disable ordinary diagnostic output. |
| FATAL | Only the most severe failures. |
| ERROR | Errors and more severe messages. |
| WARN | Warnings, errors, and fatal messages. |
| INFO | Normal operating information; the panel's recommended everyday level. |
| DEBUG | More diagnostic detail for investigating a problem. |
| TRACE | The most detailed tracing; can produce a much larger file. |
The current setting name is DEBUG LOG LEVEL. Despite its name, its allowed values include all seven levels above.
Log size and retention¶
tr4w.log now appends without automatic rotation or the former 10 MB limit. Check available space during long diagnostic sessions. TRACE can produce roughly 100 MB per hour, depending on activity. Close TR4W before archiving or removing an old diagnostic log; preserve the relevant session before starting another capture.
Networked-Icom packet-by-packet output is now TRACE. DEBUG retains connection lifecycle events and session renewal, making it the more useful first choice for connection problems.
Trace a particular subsystem¶
The Logging panel also provides separate controls:
| Control | Purpose |
|---|---|
| DX cluster — log all telnet traffic | More detail about cluster traffic. |
| TCI server — log every command, both directions | Trace server-side TCI exchanges. |
| HamLib — debug logging | Hamlib-related diagnostics. |
| HamLib — internal trace to hamlib_trace.log | Write a separate detailed Hamlib trace. |
| HamLib — async callbacks only, no heartbeat (testing) | A test mode that changes behavior; it is not simply another verbosity level. |
The form says the three Hamlib settings take effect on the next TR4W start. This differs from the main log level, which takes effect when applied without restarting. Turn on the detail appropriate to the problem rather than selecting every test option.
Where diagnostic files go¶
| Platform | Default main diagnostic log |
|---|---|
| Windows | %APPDATA%\TR4W\tr4w.log for a Program Files install or read-only working folder. Otherwise tr4w.log in the working folder. |
| macOS | ~/Library/Logs/TR4W/tr4w.log |
| Linux | ~/.local/state/tr4w/tr4w.log, or under the configured XDG state root |
The Hamlib trace uses the same diagnostic-log root with filename hamlib_trace.log. The panel's active path and Open log file command are useful when several installations or launch profiles exist. Files and folders shows directory trees, contest databases, and reference-data locations.
Startup records the active data paths, redirection and database journal settings. DEBUG lines tagged [Lookup] identify the source of a callsign lookup's name, QTH, or exchange. Use those lines to distinguish a recent log entry from call history or reference data.
For a useful diagnostic report, retain the relevant log together with the TR4W version, platform, radio or integration involved, reproduction steps, and approximate time. The Logging panel also offers Warn when the log file grows unexpectedly; this is a warning control, not a backup or retention policy.
Report a crash¶
Preserve tr4w.log, including its startup and [CRASH] records, with the version, operating system, approximate time, and actions leading to the failure. Keep the macOS crash report too if the system supplies one. Exception reporting is installed in the application, headless export path, and multi-op server; it cannot guarantee a report after every kind of process or machine failure.
On macOS, raw addresses in a backtrace are expected. The log records the running binary's identity and load address so a developer can decode it afterward. The 5.0.26 release offers separate application and server .dSYM.zip files plus a symbol manifest. Symbols must match the report's UUID, not just its version number. They do not need to be installed inside TR4W.app.
The Windows .dbg is also available separately for matching crash reports. Most operators should send the report and log; download symbols only when helping investigate a failure. These symbol downloads are intended for the alpha/beta testing period.
Source check
Levels: uSettingsModel.pas, LOG_LEVEL_SPELLINGS. UI and apply behavior: ui/lcl/uPrefsForm.lfm and .pas, including SaveLoggingPanel and cbxLogLevelChange. Main log path: uProgramMain.pas. Hamlib trace path: radioFactory/uRadioHamLibDirect.pas. This guide has not exercised the panel in a running application.