Logging
throng writes logs and crash reports to a logs folder under the user-data directory:
%APPDATA%\throng\logs when installed, %APPDATA%\throng-dev\logs for a dev run; ~/.local/share/throng/logs on
Linux and ~/Library/Logs/throng on macOS (where the files live). A crash that
closes the window leaves evidence behind. The daemon and its terminal agent write beside the app.
Logs never leave the machine, and they are anonymised before they are written: paths, user and machine
names become short tokens (the same value gives the same token in every log), and a project is named
by its internal id, shown when you hover a project's path in the Projects panel. Every notice is
logged, with the number of entries pending in the Notifications panel at the time.
Log detail
Cog › Settings › Logging
diagnostics.logLevel
How much throng records in its log files. Logs never leave this machine.
Default: info · Values: fatal · error · warn · info · debug
How much throng records. A crash of a process, window or panel is recorded at fatal whatever this is set to. Raise it to debug before reproducing a problem, then send the logs with your report. At debug, terminals also write [renderer-terminal] lines to main.log: what each view was handed when it attached, screen and mouse mode changes, wheel routing, selections, menu copies and redraws.
Log file size
Cog › Settings › Logging
diagnostics.maxFileBytes
How large a single log file may grow before throng starts a new one.
Default: 1 MB (1,048,576 bytes) · Values: 0.25 – 4 MB, step 0.25 MB; 1,024 – 67,108,864 bytes in the box
A full file is renamed and kept, and logging carries on in a fresh one; nothing is deleted when a file rolls over. The older files then stay for the days set below, up to the folder limit.
Days of logs kept
Cog › Settings › Logging
diagnostics.keepDays
How many days of logs to keep, counting days throng ran. throng deletes older logs.
Default: 3 days · Values: 1 – 30 days, step 1
Only days on which throng wrote a log count, so a fortnight away does not empty the folder: with the default,
you keep the logs of the last three days you used throng. Log folder limit still applies on top, so a
busy day at debug can push older days out sooner.
Log folder limit
Cog › Settings › Logging
diagnostics.maxTotalBytes
The most space throng's logs may take. throng deletes the oldest first.
Default: 100 MB (104,857,600 bytes) · Values: 50 – 2,000 MB, step 50 MB; 1,048,576 – 68,719,476,736 bytes in the box
The most space all of throng's logs and crash reports may take. Past it, the oldest files are deleted first, and the log records that it did. A log still being written is never deleted.