The output_log.txt file gets spammed with a lot of messages that make it hard to sift through if you're looking for what went wrong with your setup. Add some levels so that one can opt out of (for example) debugging/dev messages, normal state changes, etc.
Levels are debug, info, warn, and error. Default is info.
So rather than doing this: GM.dbug.Log("message"); for everything, now:
GM.logger.Debug("just debuggin'");
GM.logger.Info("launching game: something.exe");
GM.logger.Warn("missing a file but fear not we can recover");
GM.logger.Error("oh no something went wrong!");
The output_log.txt file gets spammed with a lot of messages that make it hard to sift through if you're looking for what went wrong with your setup. Add some levels so that one can opt out of (for example) debugging/dev messages, normal state changes, etc.
Levels are
debug
,info
,warn
, anderror
. Default isinfo
.So rather than doing this:
GM.dbug.Log("message");
for everything, now:Log
calls