Twitch-Channel-Points-Miner-v2 icon indicating copy to clipboard operation
Twitch-Channel-Points-Miner-v2 copied to clipboard

Include acc name in logs + more log options

Open Guliveer opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Since there is a possibility to use multiple accounts at once, I thought it would be cool if you could differentiate which is which. Also, I thought about adding more options to the log system (Events), like START, LOAD, and END.

Describe the solution you'd like Just check the bottom of the issue.

Describe alternatives you've considered At the moment I don't think there are any alternatives

Additional context Screenshot_215

e.g.

TwitchChannelPointsMiner.py: f"[{self.username}] Start session: '{self.session_id}'", extra={"emoji": ":bomb:", "event": Events.START,}

Anything more that is to do is just edit Settings.py file and you're good to go!

Guliveer avatar Sep 19 '22 20:09 Guliveer

TwitchChannelPointsMiner.py doesn't produce all the log messages, for example +50 --> ... REASON: CLAIM is handled by another module. I decided to add the username to logger.py, so it will appear on EVERY message in the console.

It works and looks cool. Added an option to toggle it.

See PR #635 or my release https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/releases/tag/1.3.2

rdavydov avatar Oct 21 '22 19:10 rdavydov