makotok / Hanappe

Hanappe is a game framework for MOAI SDK.
Other
107 stars 41 forks source link

Replaced print statements with MOAILogMgr #108

Closed seamustuohy closed 10 years ago

seamustuohy commented 10 years ago

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.

makotok commented 10 years ago

Thank you!