fabian57fabian / archero_bot_57

A bot to farm on Archero mobile game
GNU General Public License v3.0
26 stars 13 forks source link

Switch to logging #40

Closed fabian57fabian closed 1 year ago

fabian57fabian commented 2 years ago

Why Because due to different log messages (UI, console, debug and some traces) there is a debug variable in most scripts and also a disableLogs, witch is confusing and adding futile lines to code

Describe the solution you'd like We will be using 'logging' library from python with a simple configuration to console, a different UI logger only for interface and a simplified logging.info(...), logging.debug(...), logging.error(...) log calls.

Describe alternatives you've considered Alternatives rely on dabug, trace and info variables in all scripts, but they will be going to be a mess.

This feature will be added by @fabian57fabian

fabian57fabian commented 2 years ago

Added logging library with commit c9926e0971c77412e70186ee5b9222a9386e5bad I'm letting current issue open in case there were bugs introduced.