Rushwind13 / JMoria

My from-scratch implementation of a Roguelike game that will be an homage to IMoria
4 stars 4 forks source link

fix: Log output #64

Closed Rushwind13 closed 1 month ago

Rushwind13 commented 1 month ago

fixed all log outputs so that they make sense with LOG_LEVEL_WARN set

DEBUG = noise needed while debugging INFO = good developer info, overkill for gameplay WARN = output tailored to being interesting to players (also actual warnings about missed keypresses) ERROR = actual errors (bad file, can't render, &c)

if you want the player to see it on stdout (play game to get an idea of what that looks like), set LOG_LEVEL_WARN. For dev stuff, LOG_LEVEL_INFO. For problems, LOG_LEVEL_ERROR. To make it "go away and shut up", LOG_LEVEL_DEBUG