Logging

The logger should be used to log useful information that can be used later to find any issues with the project. By default, the logger is printing to the console window, visual studio output window, and logging to a file called GameLog.log.

FATAL_ERROR(str)
Displays an error even in Release mode with a popup with the given string.

FATAL_ERRORIF(expr, str)
Displays an error even in Release mode with a popup if the given expression (expr) is true.

NONFATAL_ERROR(str)
Displays an error dialog box that isn't fatal to the program and is not shown in Release mode.

ERRORIF(expr, str)
Displays an error dialog box that isn't fatal to the program if the given expression (expr) is true. Not shown in Release mode.

WARNING(str)
Log that something went wrong that we should be notified about, but don't interrupt the program.

WARNINGIF(expr, str)
Log that something went wrong that we should be notified about if the given expression (expr) is true and doesn't interrupt the program.

INFO(str)
Log information with the [INFO] tag.

LOG(tag, str)
Log information with the tag being user defined.