Enable max number of log lines config

Sometimes there are an unreasonable number of log lines (eg: stack traces).  
This option allows a limit to be specified.
Somewhat addresses issue #19