Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E9FDF200B66 for ; Thu, 18 Aug 2016 16:02:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E890F160AAE; Thu, 18 Aug 2016 14:02:21 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6146A160A76 for ; Thu, 18 Aug 2016 16:02:21 +0200 (CEST) Received: (qmail 21881 invoked by uid 500); 18 Aug 2016 14:02: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 21868 invoked by uid 99); 18 Aug 2016 14:02:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 14:02:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 717912C02A1 for ; Thu, 18 Aug 2016 14:02:20 +0000 (UTC) Date: Thu, 18 Aug 2016 14:02:20 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1528) Serialize configuration into a log4j2.xml file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 14:02:22 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1528?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D154= 26515#comment-15426515 ]=20 Remko Popma commented on LOG4J2-1528: ------------------------------------- A method returning the current object as a string in some format is traditi= onally named {{toFormat}} or {{asFormat}}. I don't think there's a conventi= on for methods returning void that write the current object into a paramete= r but {{writeAsFormat}} would be a good candidate. The current name is ok t= oo, although you may not need "File" at the end. It should _not_ be called = toSomething I think.=20 > Serialize configuration into a log4j2.xml file > ---------------------------------------------- > > Key: LOG4J2-1528 > URL: https://issues.apache.org/jira/browse/LOG4J2-1528 > Project: Log4j 2 > Issue Type: New Feature > Components: Configurators > Affects Versions: 2.6.2 > Reporter: Mikael St=C3=A5ldal > Assignee: Mikael St=C3=A5ldal > > This would be useful for e.g. converting from Log4j 1 to Log4j 2 config. -- 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