[ENH] Enhanced Debug Logging #10

Open
opened 2024-01-30 08:47:15 -05:00 by modulatingforce · 1 comment

println! is getting quite bulky, and having to debug code areas by commenting/uncommenting these is becoming a hassle.

I want to use enhanced debug logging that is similar to python logging : https://docs.python.org/3/library/logging.html

In particular,

  • Set a Log Level so stdout prints that log level or higher
    • Ideally able to set a min/max range log level
    • Log levels similar to logging , but maybe also include a TRACE log level that includes some additional trivial entries
  • Output with additional information : e.g., timestamp , File, LineNo
  • Change output stream : e.g., strout , strerr

Afterwards, of course, go through current bot core and replace with new logging


Not a priority. The current process as a workaround is relatively feasible

`println!` is getting quite bulky, and having to debug code areas by commenting/uncommenting these is becoming a hassle. I want to use enhanced debug logging that is similar to python `logging` : https://docs.python.org/3/library/logging.html In particular, - [ ] Set a Log Level so `stdout` prints that log level or higher - [ ] Ideally able to set a min/max range log level - [ ] Log levels similar to [logging](https://docs.python.org/3/library/logging.html#logging-levels) , but maybe also include a TRACE log level that includes some additional trivial entries - [ ] Output with additional information : e.g., timestamp , File, LineNo - [ ] Change output stream : e.g., `strout` , `strerr` Afterwards, of course, go through current bot core and replace with new logging --- Not a priority. The current process as a workaround is relatively feasible
modulatingforce added this to the Prototype 1.0 milestone 2024-01-30 08:47:15 -05:00
modulatingforce added the
Kind/Enhancement
Priority
Low
labels 2024-01-30 08:47:15 -05:00
modulatingforce self-assigned this 2024-01-30 08:47:15 -05:00
modulatingforce added this to the Rust Learning project 2024-01-30 08:47:15 -05:00
Author
Owner

Related : https://crates.io/crates/casual_logger

looks so yummy - 7 log levels. drooling

Related : https://crates.io/crates/casual_logger looks so yummy - 7 log levels. drooling
modulatingforce added the
Bot_Code
Core
Complexity
Intermediate
labels 2024-03-27 18:37:20 -04:00
modulatingforce modified the project from Rust Learning to Forcebot Prototype 1.0 Push 2024-03-27 18:46:00 -04:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: modulatingforce/forcebot_rs#10
No description provided.