Full logging suite #60

Merged
sirdog3355 merged 1 commit from feat/backend-logging into dev 2025-10-19 04:03:53 -04:00
sirdog3355 commented 2025-10-19 03:55:54 -04:00 (Migrated from github.com)

Alright. This is a doozy.

  • All bot actions now log using Python's logging library.
  • Logged actions are to files in folder log. It is not included in this repository for practical reasons; making an example log file is not useful as running the bot automates their creation.
  • In line with the above, .log files added to .gitignore as that extension will be used for generated log files.
  • All logging setup consolidated into new file logging_setup.py.
  • 3 custom logging levels: UNAUTHORIZED, COOLDOWN, and BOOT are created.
    • UNAUTHORIZED for events where a member attempts to do something and is intentionally stopped.
    • COOLDOWN for when a member hits the /rquote cooldown.
    • BOOT for special formatting so that the file the logs go to separate the bot booting up with the date and time for easier reading.
  • In rquote.py a local variable has_attachment is created so that the debug variant of a quote being generated can declare if the chosen message had an attachment or not.
Alright. This is a doozy. - _All_ bot actions now log using Python's `logging` library. - Logged actions are to files in folder `log`. It is not included in this repository for practical reasons; making an example log file is not useful as running the bot automates their creation. - In line with the above, `.log` files added to `.gitignore` as that extension will be used for generated log files. - All logging setup consolidated into new file `logging_setup.py`. - 3 custom logging levels: `UNAUTHORIZED`, `COOLDOWN`, and `BOOT` are created. - `UNAUTHORIZED` for events where a member attempts to do something and is intentionally stopped. - `COOLDOWN` for when a member hits the `/rquote` cooldown. - `BOOT` for special formatting so that the file the logs go to separate the bot booting up with the date and time for easier reading. - In `rquote.py` a local variable `has_attachment` is created so that the debug variant of a quote being generated can declare if the chosen message had an attachment or not.
Sign in to join this conversation.
No description provided.