Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 69623 invoked from network); 8 Jun 2006 01:05:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Jun 2006 01:05:53 -0000 Received: (qmail 51211 invoked by uid 500); 8 Jun 2006 01:05:52 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 50864 invoked by uid 500); 8 Jun 2006 01:05:51 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET User" List-Id: Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 50853 invoked by uid 99); 8 Jun 2006 01:05:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 18:05:51 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tinhuty@hotmail.com designates 65.54.224.49 as permitted sender) Received: from [65.54.224.49] (HELO hotmail.com) (65.54.224.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 18:05:51 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 7 Jun 2006 18:05:30 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 08 Jun 2006 01:05:26 GMT X-Originating-IP: [68.73.116.34] X-Originating-Email: [tinhuty@hotmail.com] X-Sender: tinhuty@hotmail.com From: "tinhuty he" To: log4net-user@logging.apache.org Subject: how to set property for application level Date: Wed, 07 Jun 2006 20:05:26 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 08 Jun 2006 01:05:30.0496 (UTC) FILETIME=[A2EFD800:01C68A97] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N How can I set a property in application level so that all logs produced from that application will have this property in log file, including all logs produced from other assemblies used by this application? For example I want to all my log has an property "appname" to stored the value of application name. I tried to set an application name: ThreadContext.Properties["appname"] = "App1"; This doesn't work as what I wanted. Some of the log entries don't have this property. How should I approach it? Thanks. ___________________________________________________________ Sent by ePrompter, the premier email notification software. Free download at http://www.ePrompter.com. _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement