From log4j-dev-return-45173-apmail-logging-log4j-dev-archive=logging.apache.org@logging.apache.org Tue Aug 23 16:08:21 2016 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 8393A19212 for ; Tue, 23 Aug 2016 16:08:21 +0000 (UTC) Received: (qmail 68585 invoked by uid 500); 23 Aug 2016 16:08:20 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 68450 invoked by uid 500); 23 Aug 2016 16:08:20 -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 68431 invoked by uid 99); 23 Aug 2016 16:08:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2016 16:08:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7DA1D2C0152 for ; Tue, 23 Aug 2016 16:08:20 +0000 (UTC) Date: Tue, 23 Aug 2016 16:08:20 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1010) Injectable context properties 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-1010?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D154= 33104#comment-15433104 ]=20 Remko Popma commented on LOG4J2-1010: ------------------------------------- Done in commit ca90bc1: ThreadContextMapFilter now gets context data from = the configured ContextDataInjector, not hard-coded from ThreadContext. ThreadContextMapFilter is now also aliased to ContextMapFilter. > Injectable context properties > ----------------------------- > > Key: LOG4J2-1010 > URL: https://issues.apache.org/jira/browse/LOG4J2-1010 > Project: Log4j 2 > Issue Type: Improvement > Components: Core > Affects Versions: 2.2 > Reporter: Mikael St=C3=A5ldal > Assignee: Remko Popma > Fix For: 2.7 > > Attachments: properties.patch > > > It would be useful to have a way to inject context properties into a {{Lo= gEvent}}, as an alternative to {{ThreadContext}}. > In an asynchronous environment, using ThreadContext as currently implemen= ted is not so useful since JVM threads might not be coupled to the logical = flow of the application. -- 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