mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-02 18:07:04 +00:00
96ed437966
A launcher started from the Dock, the Start menu or at login has no terminal, and the Windows build has no console, so its log records and panic reports were lost. env_logger now writes each record to standard error and to logs/artcraft-launcher.log in the launcher's data folder (portable mode included). Each start keeps the previous two runs' logs; the file is capped at 16 MiB. The file is opened once this is the only launcher running, so a second start doesn't rotate the first one's log away. Panics are reported through the logger. The default filter is now info for the launcher's crates and warn for the rest; RUST_LOG still wins. Ported from storytold/pdfcraft#239. Co-authored-by: Fabio Lussi <198260595+itrycodinganditsbad@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>