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 83D0110769 for ; Wed, 30 Apr 2014 08:04:16 +0000 (UTC) Received: (qmail 39934 invoked by uid 500); 30 Apr 2014 08:04:15 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 39735 invoked by uid 500); 30 Apr 2014 08:04:15 -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 39725 invoked by uid 99); 30 Apr 2014 08:04:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2014 08:04:14 +0000 Date: Wed, 30 Apr 2014 08:04:14 +0000 (UTC) From: =?utf-8?Q?Mikael_St=C3=A5ldal_=28JIRA=29?= To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-624) Better structure of Thread Context Stack in JSONLayout MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-624?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Mikael St=C3=A5ldal updated LOG4J2-624: ---------------------------------- Description:=20 The Thread Context Stack is currently represented like this in JSONLayout: {code:JavaScript|title=3DCurrent} "ndc":[foo, bar]" {code} This is not correct JSON syntax, and does not make proper use of the JSON d= ata format. The Thread Context Stack should be represented as a JSON array: {code:JavaScript|title=3DSuggested} "ndc": ["foo", "bar"] {code} was: The Thread Context Stack is currently represented like this in JSONLayout: {code:JavaScript:title=3DCurrent} "ndc":[foo, bar]" {code} This is not correct JSON syntax, and does not make proper use of the JSON d= ata format. The Thread Context Stack should be represented as a JSON array: {code:JavaScript:title=3DSuggested} "ndc": ["foo", "bar"] {code} > Better structure of Thread Context Stack in JSONLayout > ------------------------------------------------------ > > Key: LOG4J2-624 > URL: https://issues.apache.org/jira/browse/LOG4J2-624 > Project: Log4j 2 > Issue Type: Improvement > Components: Layouts > Affects Versions: 2.0-rc1 > Reporter: Mikael St=C3=A5ldal > Priority: Minor > > The Thread Context Stack is currently represented like this in JSONLayout= : > {code:JavaScript|title=3DCurrent} > "ndc":[foo, bar]" > {code} > This is not correct JSON syntax, and does not make proper use of the JSON= data format. The Thread Context Stack should be represented as a JSON arra= y: > {code:JavaScript|title=3DSuggested} > "ndc": ["foo", "bar"] > {code} -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org