cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.21k stars 7.06k forks source link

Please remove space character used in tag when calling __android_log_print(...) #11735

Open yhuiyang opened 9 years ago

yhuiyang commented 9 years ago

In CCConsole.cpp, function _log() calls (line 244)

__android_log_print(ANDROID_LOG_DEBUG, "cocos2d-x debug info",  "%s", buf);

for android platform. Although log tag with space characters works fine in eclipse, but in command line tool, it doesn't work. E.g.

adb logcat "cocos2d-x debug info":V *:S

doesn't work.

ghost commented 7 years ago

I confirm this issue too, it is quite troublesome to not be able to filter only cocos logs!