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.
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.