Return-Path: Delivered-To: apmail-logging-log4cxx-dev-archive@www.apache.org Received: (qmail 75491 invoked from network); 14 Jan 2005 04:49:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jan 2005 04:49:25 -0000 Received: (qmail 44532 invoked by uid 500); 14 Jan 2005 04:49:22 -0000 Delivered-To: apmail-logging-log4cxx-dev-archive@logging.apache.org Received: (qmail 44448 invoked by uid 500); 14 Jan 2005 04:49:21 -0000 Mailing-List: contact log4cxx-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Log4CXX Dev" Delivered-To: mailing list log4cxx-dev@logging.apache.org Received: (qmail 44434 invoked by uid 99); 14 Jan 2005 04:49:21 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 13 Jan 2005 20:49:20 -0800 Received: (qmail 75422 invoked from network); 14 Jan 2005 04:49:17 -0000 Received: from localhost.hyperreal.org (HELO ?127.0.0.1?) (127.0.0.1) by localhost.hyperreal.org with SMTP; 14 Jan 2005 04:49:17 -0000 Mime-Version: 1.0 (Apple Message framework v682) In-Reply-To: <0E18D85A21D2874080456C3B8A12E83E055AA4F1@cof110avexu4.global.avaya.com> References: <0E18D85A21D2874080456C3B8A12E83E055AA4F1@cof110avexu4.global.avaya.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Curt Arnold Subject: Re: Custom Appender Question. Date: Thu, 13 Jan 2005 22:49:08 -0600 To: Log4CXX Dev X-Mailer: Apple Mail (2.682) X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a more appropriate questions for log4cxx-user, not log4cxx-dev. You might want to read http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx- user@logging.apache.org&msgNo=649 where I was reply to someone who was having problems getting an custom appender recognized. It is hard to diagnose your problem from just the header file. If you didn't have a IMPLEMENT_LOG4CXX_OBJECT macro, then your class would never get registered. I would suggest starting with the tests/src/customlogger/*.cpp files and then step-by-step modify them to your objective. I do not know how log4cxx maps the Java class names in the configuration file to the C++ class names. I'd guess that it just compares the final element in the Java class name with the C++ class names and the Java package and C++ namespaces are ignored. That said, I would avoid defining classes in the log4cxx namespace or making up class names in org.apache. Shouldn't cause any great harm, but it is good just to keep those for ASF use.