How to filter Debug Console output with FlexUnit

I have FlexUnit Run/Debug configuration setup with output to logging enabled.   This configuration allows me to 'Show test log output' and specify the logging level.   Is it possible to also provide additional filtering on what shows in the Debug Console.   My problem is that there is too much Info/Debug logging from framework classes - I just want to see the logging from my own packages.   Is there some way to filter the logs in the console based on package name or a regular expression?

10 comments
Comment actions Permalink

Hi,
currently there's no support for additional filtering.
Request is welcome.

0
Comment actions Permalink

Iam making a plugin for it. It will be released soon, just to make some configuration gui...

Only problem is that currently not all consoles are extensible, but hopefully it will get refactored...

0
Comment actions Permalink

Thank you Alex - I have raised a feature request 94819.

0
Comment actions Permalink

Thanks Meo - please let me know if you would like some help with the plugin such as testing or documentation.

0
Comment actions Permalink

Well after approval of the plugin, you can try it for that FlexUnit, but I doubt that it will work without a new API.
http://plugins.jetbrains.com/plugin/?idea&pluginId=7125

0
Comment actions Permalink

new version is avaible, it should now work on everything.

0
Comment actions Permalink

Hi Meo,

This is working brilliantly - including working for FlexUnit.

In some contexts which I haven't been able to consistently reproduce it gives me a NullPointerException in Intellij.   Restarting Intellij seems to make the problem go away.    Stack trace is attached below.

Is it possible to entirely suppress log lines matching the filter condition rather than changing appearance?

Thanks for providing this plugin.

Ross Attrill.

null
java.lang.NullPointerException
 at krasa.grepconsole.ConsoleTextDecorator.matches(ConsoleTextDecorator.java:31)
 at krasa.grepconsole.ConsoleTextDecorator.process(ConsoleTextDecorator.java:22)
 at krasa.grepconsole.GrepFilter.applyFilter(GrepFilter.java:40)
 at krasa.grepconsole.plugin.GrepConsoleApplicationComponent.getGrepFilter(GrepConsoleApplicationComponent.java:127)
 at krasa.grepconsole.integration.GrepConsoleFilterProvider.getDefaultFilters(GrepConsoleFilterProvider.java:18)
 at com.intellij.execution.impl.ConsoleViewImpl.<init>(ConsoleViewImpl.java:293)
 at com.intellij.execution.impl.ConsoleViewImpl.<init>(ConsoleViewImpl.java:272)
 at com.intellij.execution.filters.TextConsoleBuilderImpl.createConsole(TextConsoleBuilderImpl.java:53)
 at com.intellij.execution.filters.TextConsoleBuilderImpl.getConsole(TextConsoleBuilderImpl.java:45)
 at com.intellij.xdebugger.XDebugProcess.createConsole(XDebugProcess.java:162)
 at com.intellij.xdebugger.impl.XDebugSessionImpl.init(XDebugSessionImpl.java:212)
 at com.intellij.xdebugger.impl.XDebuggerManagerImpl.a(XDebuggerManagerImpl.java:202)
 at com.intellij.xdebugger.impl.XDebuggerManagerImpl.startSession(XDebuggerManagerImpl.java:170)
 at com.intellij.lang.javascript.flex.run.FlexBaseRunner.launchDebugProcess(FlexBaseRunner.java:188)
 at com.intellij.lang.javascript.flex.debug.FlexDebugRunner.launchFlexIdeConfig(FlexDebugRunner.java:108)
 at com.intellij.lang.javascript.flex.run.FlexBaseRunner.doExecute(FlexBaseRunner.java:172)
 at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
 at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:154)
 at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:92)
 at com.intellij.openapi.project.DumbService$1.run(DumbService.java:75)
 at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
 at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
 at java.awt.EventQueue.access$000(EventQueue.java:84)
 at java.awt.EventQueue$1.run(EventQueue.java:607)
 at java.awt.EventQueue$1.run(EventQueue.java:605)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
 at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
 at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

0
Comment actions Permalink

Unfortunately it can do only highlights, but I will try to figure out something.  

Never seen that, but it will not happen again.

0
Comment actions Permalink

it will be possible from IJ 12.1

0
Comment actions Permalink

Thank you Meo.

Your plugin is absolutely invaluable to me.

0

Please sign in to leave a comment.