fallahn / sfml-tmxloader

SFML 2.x based tmx tilemap parser for files created with Tiled tile map editor
106 stars 35 forks source link

Add debugging levels for console output #31

Closed Yepoleb closed 9 years ago

Yepoleb commented 9 years ago

I've found the debug information useful at the beginning, when my objective was to develop a basic structure of the game and get the map to load, but now it's making the debugging process more difficult. I get about 400 lines per map load, which requires a lot of scrolling to get to the beginning.

My suggestion to improve this is to split the messages up into debug levels. The user can set the debug level using a static variable and only messages with an equal or higher score get shown.