title: Limit message length in Log4J
body: <p>I'm working on an application that uses Log4J for logging. Occasionally, the application creates log messages that are <em>very</em> long, > 10000 characters. This causes performance problems when the log is displayed in a Console window in Eclipse.</p>
  
  <p>I want to limit the maximum message length, truncating long messages to the maximum length. How can I do that with Log4J?</p>