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 202A4200BBA for ; Sat, 5 Nov 2016 21:08:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1F2BE160AE9; Sat, 5 Nov 2016 20:08:00 +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 6B7D2160B09 for ; Sat, 5 Nov 2016 21:07:59 +0100 (CET) Received: (qmail 17729 invoked by uid 500); 5 Nov 2016 20:07:58 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 17648 invoked by uid 99); 5 Nov 2016 20:07:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Nov 2016 20:07:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6683A2C2A66 for ; Sat, 5 Nov 2016 20:07:58 +0000 (UTC) Date: Sat, 5 Nov 2016 20:07:58 +0000 (UTC) From: "Dominik Psenner (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (LOG4NET-272) Problems in dynamic file naming with multiple appenders MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 05 Nov 2016 20:08:00 -0000 [ https://issues.apache.org/jira/browse/LOG4NET-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dominik Psenner closed LOG4NET-272. ----------------------------------- Resolution: Won't Fix Assignee: Dominik Psenner The month became a year, closing as won't fix now. > Problems in dynamic file naming with multiple appenders > ------------------------------------------------------- > > Key: LOG4NET-272 > URL: https://issues.apache.org/jira/browse/LOG4NET-272 > Project: Log4net > Issue Type: Task > Components: Appenders > Affects Versions: 1.2.10 > Environment: OS: Windows XP > Programming Environment: VB.NET > .NET Framework 3.5 > Appender Type: RollingFileAppender > Reporter: Ranjith Nair > Assignee: Dominik Psenner > Priority: Minor > Fix For: 1.2 Maintenance Release > > Original Estimate: 48h > Remaining Estimate: 48h > > I have 3 appenders in my config file for creating 3 different types of logs. I am using dynamic naming of file in each of the 3 appenders by setting the global context properties. In some cases, i need to set the log file name dynamically for just 1 appender. When i set the file name for just 1 appender, it creates another file named "null" with no data in addition to the actual logfile whose name has been set dynamically. > > > . > . > . > > > . > . > > > > > > > > > In the VB.NET code i set the filename as : > log4net.GlobalContext.Properties("applog") = "file1.log" > Dim logobj as log4net.Ilog = LogManager.GetLogger("Logger1") > logobj.debug("test") > In this case it creates "file1.log" and also another empty file with name as "null". This happens only when i am setting either of the appenders filename at runtime. > Could you please check and let me know the issue behind this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)