Implement robust logging and enhanced event coverage #6

Merged
lily merged 2 commits from feature/robust-logging into main 2026-03-19 21:16:41 -06:00
Collaborator

This PR implements a robust logging system using flexi_logger.

Key changes:

  • Replaced env_logger with flexi_logger.
  • Added persistent, rotating file logs (stored in ./logs by default).
  • Added CLI arguments --log-dir and --log-level.
  • Enhanced event coverage:
    • Player connections and authentication.
    • Character creation.
    • Administrative actions.
    • Combat events (kills and deaths).
    • World loading summary.
  • Updated Gitea Action smoke tests to verify that these events are correctly logged.
  • Updated .gitignore to exclude log files.

The system uses WriteMode::BufferAndFlush for a good balance between performance and reliability.

This PR implements a robust logging system using `flexi_logger`. Key changes: - Replaced `env_logger` with `flexi_logger`. - Added persistent, rotating file logs (stored in `./logs` by default). - Added CLI arguments `--log-dir` and `--log-level`. - Enhanced event coverage: - Player connections and authentication. - Character creation. - Administrative actions. - Combat events (kills and deaths). - World loading summary. - Updated Gitea Action smoke tests to verify that these events are correctly logged. - Updated `.gitignore` to exclude log files. The system uses `WriteMode::BufferAndFlush` for a good balance between performance and reliability.
ai-user added 1 commit 2026-03-19 18:04:52 -06:00
Implement robust logging with flexi_logger and update CI to verify logs
Some checks failed
Smoke tests / Build and smoke test (push) Failing after 1m21s
Smoke tests / Build and smoke test (pull_request) Failing after 1m21s
3bd180494e
lily force-pushed feature/robust-logging from 3bd180494e to ff220f6f3b 2026-03-19 20:46:06 -06:00 Compare
lily force-pushed feature/robust-logging from ff220f6f3b to ce54f782bf 2026-03-19 20:46:25 -06:00 Compare
lily force-pushed feature/robust-logging from ce54f782bf to 99d957b461 2026-03-19 20:59:30 -06:00 Compare
lily force-pushed feature/robust-logging from 99d957b461 to 9bb4b6b69b 2026-03-19 20:59:35 -06:00 Compare
lily force-pushed feature/robust-logging from 9bb4b6b69b to 33e9f817c5 2026-03-19 21:08:01 -06:00 Compare
lily force-pushed feature/robust-logging from 33e9f817c5 to b81362d4d1 2026-03-19 21:08:08 -06:00 Compare
lily scheduled this pull request to auto merge when all checks succeed 2026-03-19 21:11:36 -06:00
lily added 1 commit 2026-03-19 21:11:47 -06:00
Merge branch 'main' into feature/robust-logging
All checks were successful
Smoke tests / Build and smoke test (pull_request) Successful in 1m28s
Smoke tests / Build and smoke test (push) Successful in 1m28s
7bab50b431
lily requested review from lily 2026-03-19 21:15:58 -06:00
lily approved these changes 2026-03-19 21:16:38 -06:00
lily merged commit 394a9b8355 into main 2026-03-19 21:16:41 -06:00
lily deleted branch feature/robust-logging 2026-03-19 21:17:09 -06:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lily/mudserver#6