I have output like this after choosing debug version in the directx cpl:
Direct3D9: (WARN) :Ignoring redundant SetTextureStageState. Stage: 0, State: 3
Direct3D9: (ERROR) :Memory Address: 008307ec lAllocID=1 dwSize=00004bc4, ReturnAddr=7248d5ea (pid=000017d4)
Is it possible to define a callback which is triggered when these notifications are added to the console, like with keyboard/mouse input? I want to be able to do more based on the information.