ConorOkus / uMlando-wallet

Lightning Dev Kit Android Demo Wallet
17 stars 9 forks source link

Use global tag for logging to start #27

Closed thunderbiscuit closed 1 year ago

thunderbiscuit commented 1 year ago

I initially had written a few of the logging lines in a more traditional way with a specific tag for each file/class, but I'm now changing my tune; I think for now it makes sense to have more like a global tag to start, and maybe customize if or when it's required for specific logging entries.

This PR simply creates a global default tag I called LDKTAG (not sure about the name but I needed something), and switches all log entries in the current app to use that tag. This makes it very easy to follow all tags emitted by us. I also fixed a small bug I introduced in the previous refactoring (capitalization of the getLatestBlockHash() method).

logs