Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 487981052D for ; Tue, 18 Mar 2014 21:32:58 +0000 (UTC) Received: (qmail 58475 invoked by uid 500); 18 Mar 2014 21:32:49 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 58381 invoked by uid 500); 18 Mar 2014 21:32:48 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 58203 invoked by uid 99); 18 Mar 2014 21:32:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2014 21:32:46 +0000 Date: Tue, 18 Mar 2014 21:32:46 +0000 (UTC) From: "Arpit Agarwal (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HADOOP-10413) Log statements must include pid and tid information MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Arpit Agarwal created HADOOP-10413: -------------------------------------- Summary: Log statements must include pid and tid information Key: HADOOP-10413 URL: https://issues.apache.org/jira/browse/HADOOP-10413 Project: Hadoop Common Issue Type: Improvement Affects Versions: 2.3.0, 3.0.0 Reporter: Arpit Agarwal Log statements do not include process IDs and thread IDs which makes debugging hard when the output of multiple requests is interleaved. It's even worse when looking at the output of test runs because the logs from multiple daemons are interleaved in the same file. Log4j does not provide a builtin mechanism for this, so we'd likely have to write some extra code. One possible solution is to initialize the IDs in the [MDC|https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/MDC.html] and extract by updating the {{ConversionPattern}} as [described here|http://stackoverflow.com/a/12202124]. -- This message was sent by Atlassian JIRA (v6.2#6252)