brickrail icon indicating copy to clipboard operation
brickrail copied to clipboard

[Feature] fancy logs

Open Novakasa opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. When people encounter issues with Brickrail, it will be really helpful to have some information of what was going on internally in brickrail. Currently, only the BLEserver stdout is accessible to the user.

Describe the solution you'd like Add automatic log files. We already have the logger singleton but let's investigate other solutions as well.

Novakasa avatar Apr 30 '23 21:04 Novakasa

It would be useful if log messages could be assigned to "topics" and I can then filter these topics to debug certain things. This doesn't seem to be a feature in any existing Godot logger, so might need to create a custom solution there.

Novakasa avatar May 01 '23 14:05 Novakasa

We do have basic logs now, using automatic logging feature of godot and new logging plugin. Keeping this open because of the "topics" feature, making the Logger Singleton custom

Novakasa avatar May 02 '23 12:05 Novakasa

also we could have a log-dispatcher class, where each object creates a new instance and stores the constants like which topic, which logging module in this instance and each logging call goes through that instance

Novakasa avatar May 23 '23 15:05 Novakasa