NEW LOGD AND LOGI SYSTEM, TESTED ON COCOA AND ANDROID (TODO: TEST ON MSW)