makotok/Hanappe — pull request #108 by elationfoundation (2014-04-21 13:30:31+00:00)
Title: Replaced print statements with MOAILogMgr

Print statements were being used to log messages. This made using the built in log manager for Moai to control logging only work for non Hanappe-framework code.

This commit moves all print statements to use your existing logger and made that logger use the MOAILogMgr class. I did not go as far as pushing Logger.error to register the log message as an error message. Instead I placed everything as a Status message.

This work could be extended by making all logging messages use the default MOAILogMgr class or adding the registration for log messages of different classes.