Pbatch / ClashRoyaleBuildABot

A platform for creating bots to play Clash Royale
MIT License
216 stars 37 forks source link

Add Configurable Logging Level to Bot Configuration #162

Closed Leviaria closed 4 months ago

Leviaria commented 4 months ago

Description

This pull request introduces a new configuration section bot: in the config.yaml file, allowing users to set the logging level for the bot. The log_level parameter can be configured to control the verbosity of log messages, with options such as "DEBUG", "INFO", "WARNING", "ERROR", and "CRITICAL". The logging configuration has been implemented across main.py, custom_bot.py, and emulator.py to ensure consistent logging behavior throughout the application.

Changes