ostrya / PresencePublisher

An Android MQTT client that regularly publishes messages to notify about the device's presence
MIT License
79 stars 12 forks source link

Feature suggestion: log levels (filtering) #39

Closed AtmanActive closed 2 years ago

AtmanActive commented 3 years ago

Hi,

Thank you for this wonderful software. It really is a unique gem.

What I am missing in the app, however, is a simplified view of actual MQTT messages sent. I understand that raw log is very useful for debugging, but at the same time, it is unusable for working with the app as an end-user. So, what I would like to propose is an enhancement where app would actually write three separate log streams simultaneously (as opposed to only one, as it is now). These three log streams would be:

1) a raw log stream, exactly as it is now 2) a detection engine log showing only what was found in any particular moment 3) an MQTT messages log showing only the messages sent to the server and nothing else

And then, the Log viewer page in the app would have a drop-down menu where user could be able to switch between these three logs to view the one desired in that moment.

I believe it is much easier to write three separate logs while the code is running, than, to try to filter out the noise in the logs afterwards.

This feature would help building and fine tuning home automation presence detection network tremendously.

Thanks.

ostrya commented 3 years ago

A very nice idea. I will have a look at this as soon as I get the configurable MQTT message topic done (#30).