Skip to content

Write to log file records captured before configs are loaded

elsid requested to merge elsid/openmw:bufferer_log into master

Logging setup is defined by openmw.cfg files but before and when they are loaded there is some logging going on:

Crash handler installed
Loading config file: /home/elsid/dev/openmw/build/clang/fast/openmw.cfg
Loading config file: /home/elsid/.config/openmw/openmw.cfg
Logs dir: /home/elsid/.config/openmw/
User data dir: /home/elsid/.local/share/openmw/
Screenshots dir: /home/elsid/.local/share/openmw/screenshots

The problem is that it's written only to the terminal but not the log file.

Buffer those records until setupLogging is called with the path were to write the log file and dump them there.

Merge request reports