traff/jediterm — pull request #62 by Plonk42 (2013-09-18 16:18:05+00:00)
Title: Prevent overnumerous log when using "cat" on a binary file

We are starting our application using JNLP, with the Java Webstart console enabled.

I ran "cat" on a binary file (by mistake :) ), then everything was frozen.

I found that Java Webstart Console is responsible of this, because completely buried by tons of "Unhandled control character" logs (and not designed to handle 56 millions log entries ...).

After having throttled the logger, everything is fine.
The idea is to display to first 100 unhandled chars, then 1 in 10, then 1 in 100 and so on, to avoid numerous log entries, and still keeping (some of) the information.

I'm not sure if this is the best solution, so comments are very welcome!