Over the years I’ve Googled and Googled for a solution to this. Heck I even tried Bing! Finally time + an urgent need permitted figuring out a simple solution. To filter down to one thread using Notepad++:
- Copy the angle brackets and thread number to clipboard. E.g. “[12]”
- Menu -> TextFX Viz -> Hide Lines without (Clipboard) text
- Press Ctrl-A (Select all text)
- Menu -> TextFX Viz -> Delete Invisible Selection
- Press Ctrl-A (Select all text)
- Menu -> TextFX Edit -> Delete Blank Lines
- That’s it! You are now viewing one logging from only one Thread
This works very quickly even with 70,000+ line 10MByte log files. IMO it avoids the need for xml log4net logging and Chainsaw (or similar).Simpler is always better.
Demo: Two threads counting to 100:
Copy the angle brackets and thread number to clipboard. E.g. “[12]”
Menu -> TextFX Viz -> Hide Lines without (Clipboard) text
Press Ctrl-A (Select all text)
Menu -> TextFX Viz -> Delete Invisible Selection
Press Ctrl-A (Select all text)
Menu -> TextFX Edit -> Delete Blank Lines
That’s it! You are now viewing one logging from only one Thread