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