Chirimen Posted April 20, 2019 Share Posted April 20, 2019 in WoT 1.4.1.2, to enable Flash debug output (using "DebugUtils.LOG_DEBUG") import logging logging.getLogger('gui.Scaleform.Flash').setLevel(logging.DEBUG) how to eneble "DebugUtils.LOG_DEBUG" in WoT 1.5.0.0 CT ? @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted April 20, 2019 Share Posted April 20, 2019 (edited) gui.Scaleform.flash_wrapper.Flash Edited April 20, 2019 by Ekspoint @ Quote Link to comment Short link Share on other sites More sharing options...
Chirimen Posted April 20, 2019 Author Share Posted April 20, 2019 thanks, I tried it, but it did not move. in WoT 1.4.1.2, class Flash has following methods, def afterCreate(self): self.addExternalCallback('debug.LOG_GUI', self.__onLogGui) self.addExternalCallback('debug.LOG_GUI_FORMAT', self.__onLogGuiFormat) but in WoT 1.5.0.0 CT, the method of class FlashComponentWrapper is follows, def afterCreate(self): pass and not defined in class Flash. @ Quote Link to comment Short link Share on other sites More sharing options...
Ekspoint Posted April 20, 2019 Share Posted April 20, 2019 @Chirimen do hook functions, what's the problem? in class AppEntry also use from gui.Scaleform.framework.application import AppEntry _logger = logging.getLogger(__name__) def onLogGui(logType, msg, *kargs): _logger.debug('%s.GUI: %r, %r', str(logType), msg, kargs) def onLogGuiFormat(logType, msg, *kargs): _logger.debug('%s.GUI: %r', str(logType), msg % kargs) def afterCreate(self, base=AppEntry.afterCreate): base(self) self.addExternalCallback('debug.LOG_GUI', onLogGui) self.addExternalCallback('debug.LOG_GUI_FORMAT', onLogGuiFormat) AppEntry.afterCreate = afterCreate @ Quote Link to comment Short link Share on other sites More sharing options...
Chirimen Posted April 21, 2019 Author Share Posted April 21, 2019 thanks @Ekspoint, but unfortunately it did not work. the hook to afterCreate of AppEntry is success, but addExternalCallback does not seem to work or it`s maybe removed somewhere. AS3: DebugUtils.LOG_ERROR("this is ERROR message"); DebugUtils.LOG_DEBUG("this is DEBUG message"); DebugUtils.LOG_WARNING("this is WARNING message"); python.log in 1.5.0.0 CT with hook or without hook: 2019-04-21 09:33:19.150: ERROR: this is ERROR message 2019-04-21 09:33:19.150: WARNING: this is WARNING message python.log in 1.4.1.2 without hook: 2019-04-21 09:54:03.108: DEBUG: [gui.Scaleform.Flash] ERROR.GUI: 'this is ERROR message', () 2019-04-21 09:54:03.108: DEBUG: [gui.Scaleform.Flash] DEBUG.GUI: 'this is DEBUG message', () 2019-04-21 09:54:03.108: DEBUG: [gui.Scaleform.Flash] WARNING.GUI: 'this is WARNING message', () @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.