Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CC23318C3B for ; Tue, 8 Mar 2016 15:12:19 +0000 (UTC) Received: (qmail 63655 invoked by uid 500); 8 Mar 2016 15:12:19 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 63570 invoked by uid 500); 8 Mar 2016 15:12:18 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 63559 invoked by uid 99); 8 Mar 2016 15:12:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Mar 2016 15:12:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DD33A180602 for ; Tue, 8 Mar 2016 15:12:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bIpXyqKXV2FN for ; Tue, 8 Mar 2016 15:12:16 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 35FEE5F1B3 for ; Tue, 8 Mar 2016 15:12:16 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id xr8so21861688lbb.1 for ; Tue, 08 Mar 2016 07:12:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=X4dIe3tyDJa6gw7xMm9NTRUBZ3gw+pZAZzjEZytA9BE=; b=L2YIEvfMOzYQbswK7IVMXlAawN8EsYt5GdBO6I+golPni5NxevI8/08WQIClTazOk5 OT631Fxv+ozLZJIaaqUkSkMvCabB45m3iF8/EYz+RIRe/qqeumb72HB61unL0Lt6O/8u RBIMxiif5PVSRQ752yXmhhuwi+R9kzI3Uk7o9ZGYd0XU8IiYIhztg8xLQ9/SZuT7V5hf r1WHwQh7IeW9dEDD4/gtO+CXjIlD/ZA304Ai7EdJOFV1hQWSdAF23xEG/JbiLz12ger0 uoBZKe7PM2gvPbE7HCYZQZNLi6lHdoWZb7DucUBzjtoFHKjCDoidvTt5f6BoStzzZUmg OCtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=X4dIe3tyDJa6gw7xMm9NTRUBZ3gw+pZAZzjEZytA9BE=; b=gn3QD7nFzpqRA/NNHeExlDFoBAmbZDA1OX7SsIqjmmOnilR6nEYFsNp/dU+0VroAap rXmsaqQ6geT7wY6XX/wd5izQu3AzyKdZUpIrD4WhhmCXuCii/Dr9u+3wGkkhGO2f3aQV 1C9t3KMZgHelGt6fEeesbC30ph0xdqiaf0DjoNvGowuz0VBqd7BdZbYueKsrfzWv21NA 2AZTUbSsToYASjSojJVBkdkJYDUHPvGq543j8RKeSfBmMPC6oqyjYSRSDBylT0Kk9vDT dfvGTLxjPt+KMZAEOY8KBmjpA5uhipHwPo1svRJZ+8I6Ww0w+6SrzUGPyGBTxWB8tsO3 2EEQ== X-Gm-Message-State: AD7BkJI9WSbFQi7Hdv39YpX7OVZCe64l0d3hKMJe+xU/lEczfCALe94rT8LSOfEHdteIPUBKSWCIfok03ulvrg== MIME-Version: 1.0 X-Received: by 10.25.32.4 with SMTP id g4mr11353382lfg.14.1457449932926; Tue, 08 Mar 2016 07:12:12 -0800 (PST) Received: by 10.112.16.71 with HTTP; Tue, 8 Mar 2016 07:12:12 -0800 (PST) Date: Tue, 8 Mar 2016 17:12:12 +0200 Message-ID: Subject: default value for empty ${web:contextPath} From: Andrei Ivanov To: log4j-user@logging.apache.org Content-Type: text/plain; charset=UTF-8 Hello, In the hope that someone else might have a better solution, I'm trying here. As you can see in http://stackoverflow.com/questions/35729590/log4j2-lookup-default-value-with-empty-contextpath, I'm trying to set the filename of an appender using the context path of the web application. It works except the case when the app is deployed as the root of the virtual host, case when the contextPath is an empty string (not null). The default (specified in the Properties section) is only used when the lookup returns null. Is there anything else I can do besides writing a plugin just for this? Regards --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org