Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to enable logging
How to enable Logging in Hearthstone
log.config file in one of the two following folders:
See Windows section or:
- Create a
log.configin the folder
WINEPREFIX/drive_c/users/YOURUSER/Local Settings/Application Data/Blizzard/Hearthstone
log.config file in the folder
log.config file is contained in the folder
/sdcard/Android/data/com.blizzard.wtcg.hearthstone/files. You will need a file manager and text editor to find it and write to it.
- Put the following text in the file
[Power] LogLevel=1 FilePrinting=true ConsolePrinting=true ScreenPrinting=false
You're DONE! Now you're all set forever. Relaunch Hearthstone if you had it open. The log file, called
Power.log, containing all your data will be found in the Hearthstone installation directory:
C:\Program Files (x86)\Hearthstone\Logs\Power.log(or just Program Files for 32 bit people)
There are many other log files, but Power.log is the one that contains everything that happens in the game. This information is detailed enough to create a game replay (Hearthstone Deck Tracker does this, for example). For more technical information, check HearthStone Game State Protocol.
The Power.log file will contain as many games as you play in a Hearthstone session. Every time you re-open Hearthstone, Power.log will be erased and started from scratch, so be careful to save what you need before doing that.
Reading Power.log programmatically
The Python HSLog library can read Power.log files and extract game state out of them: https://github.com/HearthSim/python-hslog
The full gamestate protocol is explained here: https://hearthsim.info/docs/gamestate-protocol/
Achievements.log: Log card pack openings
Unfortunately, Achievements.log no longer logs card pack openings.