views:

24

answers:

0

I am working on a VC# project which uses the Debug.Writleline command for debugging. I would like to filter out certain debug messages at runtime.

I can think of 2 ways to do this:

  1. Somehow viewing the debug messages on stdout and redirecting them to grep

  2. Using a filter function on the output window (as in netbeans)

Is there any way to do this?

PS: I am aware of more advanced logging architectures, but migrating to a better logger is not an option.