meshtastic / js

JS/TS library for interfacing with Meshtastic devices
https://meshtastic.org
GNU General Public License v3.0
75 stars 36 forks source link

[Feature Request]: Let the user configure their log levels. #100

Open TheCyberRonin opened 3 weeks ago

TheCyberRonin commented 3 weeks ago

Description

Right now there are 5 levels of logging. debug, info, warn, error, fatal. The levels are listed in level of severity. I think if we let the user choose debug, it will essentially show ALL logs. If the user chooses info we start with info and include down to fatal and so on.

I think this could be handled with an additional parameter to either connect of the connection type or even on the Client. It could also have a getter and setter so that you can adjust the log level on the fly.