Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B1A2010087 for ; Thu, 18 Dec 2014 14:32:13 +0000 (UTC) Received: (qmail 86393 invoked by uid 500); 18 Dec 2014 14:32:13 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 86339 invoked by uid 500); 18 Dec 2014 14:32:13 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 86328 invoked by uid 99); 18 Dec 2014 14:32:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2014 14:32:13 +0000 Date: Thu, 18 Dec 2014 14:32:13 +0000 (UTC) From: "David Ohana (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LOG4J2-926) Truncate from the end of text format modifier MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 David Ohana created LOG4J2-926: ---------------------------------- Summary: Truncate from the end of text format modifier Key: LOG4J2-926 URL: https://issues.apache.org/jira/browse/LOG4J2-926 Project: Log4j 2 Issue Type: Improvement Components: Pattern Converters Affects Versions: 2.1 Reporter: David Ohana In log4j 2, I would like to trim the end of messages written to the console appender when size is above a specified threshold. I looked at the http://logging.apache.org/log4j/2.0/manual/layouts.html#PatternLayout docs but can see no option to truncate the end of the "msg" field. "%.1000msg" will leave only the last 1000 chars of the message. This is not good for me because in Java the most inner frames in stack trace are printed at the beginning of the message. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org