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 EA6401868C for ; Mon, 13 Jul 2015 14:28:10 +0000 (UTC) Received: (qmail 19799 invoked by uid 500); 13 Jul 2015 14:28:05 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 19763 invoked by uid 500); 13 Jul 2015 14:28:05 -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 19716 invoked by uid 99); 13 Jul 2015 14:28:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jul 2015 14:28:05 +0000 Date: Mon, 13 Jul 2015 14:28:05 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1074) Add a logformat token for nanotime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624708#comment-14624708 ] Remko Popma commented on LOG4J2-1074: ------------------------------------- Understood. Thanks for the clarification! > Add a logformat token for nanotime > ---------------------------------- > > Key: LOG4J2-1074 > URL: https://issues.apache.org/jira/browse/LOG4J2-1074 > Project: Log4j 2 > Issue Type: New Feature > Reporter: Will Hains > Assignee: Remko Popma > > Add a token in the log format specifier to output the current value of {{System.nanotime()}}. > We are currently adding the nanotime value to our log messages manually, which we find very useful for troubleshooting unexpected latency, and as a quick-and-dirty data source to feed into performance analysis tools. > It would be very nice if Log4j could do this for us. It would also be nice to have this in the log format specified, so we can turn it on/off at runtime by editing the Log4j config file. -- 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