[Wrong ML before] Hi All,
I am adding the following methods to the MapMessage class: org.apache.logging.log4j.message.MapMessage.forEach(BiConsumer<String, ? super V>) org.apache.logging.log4j.message.MapMessage.forEach(TriConsumer<String, ? super V, S>, S) that will simply delegate to the underlying map. This will avoid call sites calling MapMessage.getData() which makes a copy of the whole map. Gary ---------- Forwarded message ---------- From: <[email protected]> Date: Thu, Jun 1, 2017 at 10:24 AM Subject: failure notice To: [email protected] Hi. This is the qmail-send program at apache.org. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[email protected]>: This list has merged with [email protected]. Please update your bookmarks. If you were subscribed to log4j-dev you have been automatically subscribed to the new dev list. --- Below this line is a copy of the message. Return-Path: <[email protected]> Received: (qmail 32109 invoked by uid 99); 1 Jun 2017 17:24:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2017 17:24:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 07E5E1A7A98 for <[email protected]>; Thu, 1 Jun 2017 17:24:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id HrgOXu4yDmpk for <[email protected]>; Thu, 1 Jun 2017 17:24:03 +0000 (UTC) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E49A15F2AE for <[email protected]>; Thu, 1 Jun 2017 17:24:02 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id w10so62516595oif.0 for <[email protected]>; Thu, 01 Jun 2017 10:24:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=/YPzFS9PFOoKm9zsBKD30Kc6K3p+Q6007LQ9M0Qafac=; b=GZ/qWc/bt4gYbT/aZsKsPWTaICpoz418qbAW2hXgCyQch5IEAEYyCERxEmC9kXxqsn 57ohqskCkreMtC6sizJtZY9ZkG5uilW94iNQk70DaD8CF/ py19bJ4RLi30oiM6ztzOgQ DJ/hHBfFhRg/m2IDdQZYuavfWZQFgUdfdpefczweF2 ERFCpc961N4p2KehQ4O96oZ46+ XG7hE4Ma4tG5Q3yEnnPc/a4LbatU3Aa5M37wqR+ rrbrWayKrz4tbzWb0FP712NNRx0jF csThmzcTQ1C/fHyE5xcqcZAOuQABcUULMydLbsL18+ eFyli9ITAc0m4EcheghN9yL0Xk MrHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/YPzFS9PFOoKm9zsBKD30Kc6K3p+Q6007LQ9M0Qafac=; b=bzE/LKfujYls+QTrRcJveEV2sX2ECKG9vnaxGWqNPzp4hVzV/EUV1L1a9q4wAX760b lrJ1eGQhYSH6ARhxLoLp5m6uyI94KdKrtyjFIMumO/BOV9/ QkBH48aq9gyVkDiAhcDSh lemW8wdJhdUhjFl7rC9Oa/obM4r7un4Yn2P3WWUVdlfS2t1p8xQ4 JgirgR4Px9IPmDxY EXdOBUV4JPbPGspjqOXoe+zv4U7sVaNd0uon5zpBMbV0WEUT4z81 4PnJxl/Do5Qcspfn HO/fpKca5B6l5uG2Qz847CL5kfCPKGICRv6STlgvXtWKEDXnEIhdPQBlIsmohwt 4uBI+ LlyQ== X-Gm-Message-State: AODbwcClC0cZPX1Xy98pnjhu4DubXB7W+3NDxy+I9YxPak9PhAp9dITI W7YCBWA7pC2q91YBbt45xSLTDWop4UpnrME= X-Received: by 10.157.14.116 with SMTP id n49mr1783946otd.1.1496337842283; Thu, 01 Jun 2017 10:24:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.56.101 with HTTP; Thu, 1 Jun 2017 10:24:01 -0700 (PDT) From: Gary Gregory <[email protected]> Date: Thu, 1 Jun 2017 10:24:01 -0700 Message-ID: <CACZkXPxDdr1oKTJ1qPEjcfk8oZAOuKKnJqTTCp_Fc-7h548o+w@mail. gmail.com> Subject: [log4j2] org.apache.logging.log4j.message.MapMessage.forEach To: Log4J Developers List <[email protected]> Content-Type: multipart/alternative; boundary="001a113e2fba8dabe20550e94d4b" --001a113e2fba8dabe20550e94d4b Content-Type: text/plain; charset="UTF-8" Hi All, I am adding the following methods to the MapMessage class: org.apache.logging.log4j.message.MapMessage.forEach(BiConsumer<String, ? super V>) org.apache.logging.log4j.message.MapMessage.forEach(TriConsumer<String, ? super V, S>, S) that will simply delegate to the underlying map. This will avoid call sites calling MapMessage.getData() which makes a copy of the whole map. Gary --001a113e2fba8dabe20550e94d4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hi All,</div><div><br></div><div>I am adding the foll= owing methods to the MapMessage class:</div><div><br></div><div>org.apache.= logging.log4j.message.MapMessage.forEach(BiConsumer<String, ? super V>= ;)</div><div>org.apache.logging.log4j.message.MapMessage.forEach(TriConsume= r<String, ? super V, S>, S)</div><div><br></div><div>that will simply= delegate to the underlying map. This will avoid call sites calling MapMess= age.getData() which makes a copy of the whole map.</div><div><br></div><div= >Gary</div></div> --001a113e2fba8dabe20550e94d4b--
