From log4cxx-user-returnugarcia@example.com Thu Mar 01 18:48:32 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 27616 invoked from network); 1 Mar 2007 18:48:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2007 18:48:32 -0000 Received: (qmail 28552 invoked by uid 500); 1 Mar 2007 18:48:40 -0000 Delivered-To: ugarcia@example.com Received: (qmail 28524 invoked by uid 500); 1 Mar 2007 18:48:39 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 28513 invoked by uid 99); 1 Mar 2007 18:48:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 10:48:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp104.sbc.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Mar 2007 10:48:27 -0800 Received: (qmail 87152 invoked from network); 1 Mar 2007 18:48:05 -0000 Received: from unknown (HELO ?83.161.120.155?) (ugarcia@example.com@83.161.120.155 with plain) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 1 Mar 2007 18:48:05 -0000 X-YMail-OSG: 0WoTeCYVM1nunwnvE8wKvWRjtnJMGVxXKfCZZ4XRMdlDHF1Dupb5ZyicmvEV2vyXewvOAFm977SDhYxWfNHNExYl8TkuyPvleuQc1WJJcCPBePiHV4woNy7sTxw4OBDJ4_jp.u9rQAaAIaQ- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <ugarcia@example.com> References: <ugarcia@example.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <ugarcia@example.com> Content-Transfer-Encoding: 7bit From: Curt Arnold <ugarcia@example.com> Subject: Re: log4cxx build - necessary packages Date: Thu, 1 Mar 2007 12:48:03 -0600 To: Log4CXX User <ugarcia@example.com> X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 1, 2007, at 1:28 AM, Anand Sherkhane wrote: > Hi, > > I'm building log4cxx using autogen, confgure, and make. It requires > apr and apr-util and cpp-unit amongst others. > > For that, I first build apr and apr-util. I don't build cpp-unit > because that is optional. > > Then I provide path to these packages when installing log4cxx. I > wish to know what all packages are necessary to build log4cxx > because it shows a dependency on sqlite3 and iconv. > > Has it got something to do with the way apr or apr-util is built? > > Thanks, > Anand. > I believe that apr-util is responsibility for bringing both those in. iconv (on Unix OS when available) is used to implement the apr_xlate functions which are used for character encoding and decoding (which log4cxx uses). sqlite3 is likely one of the database options for the relatively new apr_db methods which log4cxx currently doesn't use. There may be an apr-util configure flag that would suppress the database stuff (or maybe not). From log4cxx-user-returnugarcia@example.com Thu Mar 01 18:57:01 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 31727 invoked from network); 1 Mar 2007 18:57:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2007 18:57:01 -0000 Received: (qmail 44736 invoked by uid 500); 1 Mar 2007 18:57:04 -0000 Delivered-To: ugarcia@example.com Received: (qmail 44723 invoked by uid 500); 1 Mar 2007 18:57:04 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 44657 invoked by uid 99); 1 Mar 2007 18:57:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 10:57:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp104.sbc.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Mar 2007 10:56:51 -0800 Received: (qmail 7305 invoked from network); 1 Mar 2007 18:56:31 -0000 Received: from unknown (HELO ?83.161.120.155?) (ugarcia@example.com@83.161.120.155 with plain) by smtp104.sbc.mail.mud.yahoo.com with SMTP; 1 Mar 2007 18:56:30 -0000 X-YMail-OSG: BpSsdSYVM1kIKy8YtUOfSYPxB.DV.IJdVUwLZSRbQlsd0MYBU7yqLcSWRP_XUiMjWWj3X3zel25cpEjTitCj0sz6xGHjIjwvqIbJtnk1vFBV2M93SlYoTVJHYbWnCqnox4bcvRJ0hBvgrx4- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <001301c75b97$b96fce10$12dea8c0@OCTOBER> References: <001301c75b97$b96fce10$12dea8c0@OCTOBER> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <ugarcia@example.com> Content-Transfer-Encoding: 7bit From: Curt Arnold <ugarcia@example.com> Subject: Re: ant build options Date: Thu, 1 Mar 2007 12:56:28 -0600 To: Log4CXX User <ugarcia@example.com> X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 28, 2007, at 6:22 PM, Stephen Bartnikowski wrote: > Hello, > > Is there a way to tell the ant build to not build apr and apr-util? > For > example, I already have apr and apr-util installed from the > distribution iso > but I'm getting build errors building apr-util during the log4cxx > ant build. > > I'm assuming not since someone asked a similar question on the > user's list a > few months ago, but maybe something's changed. > > I'm trying to a build a log4cxx SVN snapshot that's a few months > old on a > OpenSuSE 10.2 PowerPC. > > Thanks! > Steve The build file skips the "build-apr" and "build-aprutil" targets if the "apr-available" and "aprutil-available" properties are set. Those properties are set in the "init" task based on the presence (or lack of) a static library at the expected location. You may try: ant -v -Dapr.dir=/path_to_apr -Daprutil.dir=/path_to_aprutil build- aprutil and check the output to see what is going on in evaluating those properties. From log4cxx-user-returnugarcia@example.com Fri Mar 02 05:25:45 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 39832 invoked from network); 2 Mar 2007 05:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2007 05:25:45 -0000 Received: (qmail 5972 invoked by uid 500); 2 Mar 2007 05:25:53 -0000 Delivered-To: ugarcia@example.com Received: (qmail 5843 invoked by uid 500); 2 Mar 2007 05:25:52 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 5828 invoked by uid 99); 2 Mar 2007 05:25:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 21:25:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 21:25:40 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HMzkN-0001ak-Oq for ugarcia@example.com; Fri, 02 Mar 2007 05:52:00 +0100 Received: from adsl-(418)327-4557.dsl.rcsntx.swbell.net ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Fri, 02 Mar 2007 05:51:59 +0100 Received: from achalk by adsl-(418)327-4557.dsl.rcsntx.swbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Fri, 02 Mar 2007 05:51:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ugarcia@example.com From: "Andrew Chalk" <ugarcia@example.com> Subject: Re: Upgrading to v0.9.8 Date: Thu, 1 Mar 2007 20:17:22 -0600 Lines: 99 Message-ID: <ugarcia@example.com> References: <ugarcia@example.com> <ugarcia@example.com> X-Complaints-To: ugarcia@example.com X-Gmane-NNTP-Posting-Host: adsl-(418)327-4557.dsl.rcsntx.swbell.net X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Sender: news <ugarcia@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks. "Curt Arnold" <ugarcia@example.com> wrote in message news:ugarcia@example.com... > > On Feb 6, 2007, at 12:25 PM, Andrew Chalk wrote: > >> I had to upgrade an app. that used log4cxx. We made a lot of use of >> lines >> like: >> >> LOG4CXX_INFO(eventLogger, _T("Binding to: " << sBindIP.c_str() << ". >> Port: " >> << usPort << ". Link: " << sLinkNo.c_str())); >> >> I.e. we used inline ostringstream constructs. >> >> In 0.9.8 none of this appears to work. We appear to have to make major >> modifications to our code along the lines of: >> >> ostringstream os; >> os << _T("Binding to: " << sBindIP.c_str() << ". Port: " << usPort << ". >> Link: " << sLinkNo.c_str()); >> LOG4CXX_INFO(eventLogger, os.str().c_str()); >> >> Am I missing a way to continue with inline ostringstream? >> >> Many thanks., >> > > The log4cxx 0.9.7 macros looked like: > > #define LOG4CXX_INFO(logger, message) { \ > if (logger->isInfoEnabled()) {\ > 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4StringBuffer oss; \ > oss << message; \ > logger->forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4INFO, oss.str(), __FILE__, > __LINE__); }} > > And would allow you to pass a TCHAR* (where TCHAR was either char or > wchar_t depending on the compile flags) or any other statement fragment > that could complete the oss << message statement. > > In log4cxx 0.10.0, we did not want the artificial limit of supporting > only one character type per build since many apps could easily use both > char and wchar_t within the same application. The macro looks like: > > #define LOG4CXX_INFO(logger, message) { \ > if (logger->isInfoEnabled()) {\ > logger->forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4INFO, message, > LOG4CXX_LOCATION); }} > > and the compiler picks the appropriate flavor of forcedLog (st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string > or st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4wstring) based on the type of the message expression. However > that requires that message be an expression and not a statement fragment. > I do not believe that it is possible to construct a macro that will both > accept statement fragments that 0.9.7 accepted and also support multiple > string types, but I'm willing to be proved wrong. > > You appear to be misusing the Win32 _T construct (http:// > msdn2.microsoft.com/en-us/library/c426s321(VS.80).aspx) which is intended > to be used to decorate a string literal so that it matches the TCHAR > type. For example, _T("Hello, World") would expand to "Hello, World"L if > _UNICODE is set and "Hello, World" otherwise. The examples shown about > would not compile if _UNICODE was set since they would just add a L to > the end of the fragment and change .c_str() to .c_str()L. > > log4cxx no longer defines or uses _T. It does define LOG4CXX_STR() to > create string literals that match the internal logchar type, however > LOG4CXX_STR should not be used in logging statements since both char and > wchar_t flavors are provided regardless of the logchar type. > > That is do > > LOG4CXX_INFO(logger, "Hello, World"); > > or > > LOG4CXX_INFO(logger, "Hello, World"L); > > but do not do: > > LOG4CXX_INFO(logger, LOG4CXX_STR("Hello, World")); > > The last would compile and work properly, but it reflects a > misunderstanding of logchar as the internal char type. > > It appears from your fragments that you have no interest in wchar_t > strings (or other string types like CFString on Macs) and would be > willing to trade the multiple string type support for getting the > statement fragment support back. You could create your own header file > that you include after logger.h that redefines LOG4CXX_INFO et al for > your own objectives, so instead of rewriting all your logging calls, all > you have to do is create the header file and include it where ever you > used statement fragments. > From log4cxx-user-returnugarcia@example.com Mon Mar 05 03:00:38 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 23323 invoked from network); 5 Mar 2007 03:00:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 03:00:37 -0000 Received: (qmail 1804 invoked by uid 500); 5 Mar 2007 03:00:41 -0000 Delivered-To: ugarcia@example.com Received: (qmail 1606 invoked by uid 500); 5 Mar 2007 03:00:39 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 1580 invoked by uid 99); 5 Mar 2007 03:00:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 19:00:39 -0800 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 19:00:26 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HO3Qg-0007Jt-Ga for ugarcia@example.com; Mon, 05 Mar 2007 04:00:05 +0100 Received: from 83.161.120.155 ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Mon, 05 Mar 2007 04:00:02 +0100 Received: from dezhao.huang by 83.161.120.155 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Mon, 05 Mar 2007 04:00:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ugarcia@example.com From: Alex Huang <ugarcia@example.com> Subject: multi-thread log4cxx configureAndWatch(...) Date: Mon, 5 Mar 2007 02:56:57 +0000 (UTC) Lines: 8 Message-ID: <ugarcia@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: ugarcia@example.com X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 83.161.120.155 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MyIE2; Maxthon; .NET CLR 1.1.4322; .NET CLR 1.0.3705)) Sender: news <ugarcia@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Here I am puzzled a multi thread problem.The application has A.dll,B.dll,C.dll (COM DLL) and an exe by VB6.0.I did log4cxx configureAndWatch (...) in every DllMain(...).Always,the exe run a short time and then crash by a memory problem.Would someone give me some suggestions. PS:if I just use log4cxx configure(...) in DllMain.The application runs well. Many thanks. From log4cxx-user-returnugarcia@example.com Wed Mar 07 16:18:48 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 82484 invoked from network); 7 Mar 2007 16:18:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Mar 2007 16:18:47 -0000 Received: (qmail 24251 invoked by uid 500); 7 Mar 2007 16:18:55 -0000 Delivered-To: ugarcia@example.com Received: (qmail 24224 invoked by uid 500); 7 Mar 2007 16:18:54 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 24212 invoked by uid 99); 7 Mar 2007 16:18:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 08:18:54 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO dempsey.hvu.nl) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 08:18:42 -0800 Received: from localhost (mail.asbiopharm.de [83.161.120.155]) by dempsey.hvu.nl (Postfix) with ESMTP id 2F8541C00075 for <ugarcia@example.com>; Wed, 7 Mar 2007 17:17:42 +0100 (CET) Received: from dempsey.hvu.nl ([83.161.120.155]) by localhost (dempsey [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 11631-10 for <ugarcia@example.com>; Wed, 7 Mar 2007 17:17:37 +0100 (CET) Received: from umdwex04.medewerkers.ad.hvu.nl (frontend3.hu.nl [83.161.120.155]) by dempsey.hvu.nl (Postfix) with ESMTP id 9B4B51C00C00 for <ugarcia@example.com>; Wed, 7 Mar 2007 17:15:51 +0100 (CET) Received: from USTDEXV01.studenten.ad.hvu.nl ([83.161.120.155]) by umdwex04.medewerkers.ad.hvu.nl with Microsoft SMTPSVC(418)327-4557); Wed, 7 Mar 2007 17:14:34 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C760D3.B268E34F" Subject: compile errors using LOG4CXX_DEBUG Date: Wed, 7 Mar 2007 17:14:35 +0100 Message-ID: <ugarcia@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: compile errors using LOG4CXX_DEBUG Thread-Index: Acdg07Jox9O+IGETRweEa3ZmxieRRQ== From: "jorrit de vries" <ugarcia@example.com> To: <ugarcia@example.com> X-OriginalArrivalTime: 07 Mar 2007 16:14:34.0733 (UTC) FILETIME=[B231E9D0:01C760D3] X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hvu.nl X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C760D3.B268E34F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I get the following errors every time I use the LOG4CXX_DEBUG macro. I use the following syntax: LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); where 'logger' is defined in the class as: static LoggerPtr logger; This is the part of the build log I get for the line above: error C2589: ',' : illegal token on right side of '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' error C2143: syntax error : missing ')' before '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' error C2661: 'log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Logger888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4orcedLog' : no overloaded function takes = 0 arguments error C2059: syntax error : ')' Can anybody point me to what I am doing wrong and how I might prevent = this error? Best regards, Jorrit ------_=_NextPart_001_01C760D3.B268E34F Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 6.5.7638.1"> <TITLE>compile errors using LOG4CXX_DEBUG</TITLE> </HEAD> <BODY> <!-- Converted from text/plain format --> <P><FONT SIZE=3D2>Hello,<BR> <BR> I get the following errors every time I use the LOG4CXX_DEBUG macro.<BR> <BR> I use the following syntax:<BR> LOG4CXX_DEBUG(logger, &quot;Switching to tool &quot; + = (*m_currentTool)-&gt;name);<BR> <BR> where 'logger' is defined in the class as:<BR> static LoggerPtr logger;<BR> <BR> This is the part of the build log I get for the line above:<BR> error C2589: ',' : illegal token on right side of '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4'<BR> error C2143: syntax error : missing ')' before '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4'<BR> error C2661: 'log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Logger888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4orcedLog' : no overloaded function takes = 0 arguments<BR> error C2059: syntax error : ')'<BR> <BR> Can anybody point me to what I am doing wrong and how I might prevent = this error?<BR> <BR> Best regards,<BR> Jorrit</FONT> </P> </BODY> </HTML> ------_=_NextPart_001_01C760D3.B268E34F-- From log4cxx-user-returnugarcia@example.com Wed Mar 07 16:21:05 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 83771 invoked from network); 7 Mar 2007 16:21:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Mar 2007 16:21:01 -0000 Received: (qmail 35847 invoked by uid 500); 7 Mar 2007 16:21:08 -0000 Delivered-To: ugarcia@example.com Received: (qmail 35830 invoked by uid 500); 7 Mar 2007 16:21:08 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 35819 invoked by uid 99); 7 Mar 2007 16:21:08 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 08:21:08 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO makepeace.hvu.nl) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 08:20:56 -0800 Received: from localhost (makepeace [83.161.120.155]) by makepeace.hvu.nl (Postfix) with ESMTP id 1BC111C0012A for <ugarcia@example.com>; Wed, 7 Mar 2007 17:20:35 +0100 (CET) Received: from makepeace.hvu.nl ([83.161.120.155]) by localhost (makepeace [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 27551-10 for <ugarcia@example.com>; Wed, 7 Mar 2007 17:20:34 +0100 (CET) Received: from umdwex04.medewerkers.ad.hvu.nl (frontend3.hu.nl [83.161.120.155]) by makepeace.hvu.nl (Postfix) with ESMTP id D04E61C0005F for <ugarcia@example.com>; Wed, 7 Mar 2007 17:20:34 +0100 (CET) Received: from USTDEXV01.studenten.ad.hvu.nl ([83.161.120.155]) by umdwex04.medewerkers.ad.hvu.nl with Microsoft SMTPSVC(418)327-4557); Wed, 7 Mar 2007 17:20:34 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C760D4.88CC3784" Subject: RE: compile errors using LOG4CXX_DEBUG Date: Wed, 7 Mar 2007 17:19:27 +0100 Message-ID: <ugarcia@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: <ugarcia@example.com> Thread-Topic: compile errors using LOG4CXX_DEBUG Thread-Index: Acdg07Jox9O+IGETRweEa3ZmxieRRQAAK4s4 References: <ugarcia@example.com> From: "jorrit de vries" <ugarcia@example.com> To: "Log4CXX User" <ugarcia@example.com> X-OriginalArrivalTime: 07 Mar 2007 16:20:34.0367 (UTC) FILETIME=[888DB4F0:01C760D4] X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hvu.nl X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C760D4.88CC3784 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am sorry, but I forgot to mention what I am using. log4cxx-0.9.7 Visual Studio 2005 Best regards, Jorrit -----Original Message----- From: jorrit de vries [mailto:ugarcia@example.com] Sent: Wed 3/7/2007 17:14 To: ugarcia@example.com Subject: compile errors using LOG4CXX_DEBUG =20 Hello, I get the following errors every time I use the LOG4CXX_DEBUG macro. I use the following syntax: LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); where 'logger' is defined in the class as: static LoggerPtr logger; This is the part of the build log I get for the line above: error C2589: ',' : illegal token on right side of '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' error C2143: syntax error : missing ')' before '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' error C2661: 'log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Logger888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4orcedLog' : no overloaded function takes = 0 arguments error C2059: syntax error : ')' Can anybody point me to what I am doing wrong and how I might prevent = this error? Best regards, Jorrit ------_=_NextPart_001_01C760D4.88CC3784 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 eJ8+IiMQAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEgAEAJwAAAFJFOiBjb21waWxlIGVycm9y cyB1c2luZyBMT0c0Q1hYX0RFQlVHAMwMAQWAAwAOAAAA1wcDAAcAEQATABsAAwAqAQEggAMADgAA ANcHAw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5AQAAAMAGUAAAAAAAwAaQAAAAAADAB1AAAAAAAMAHkAAAAAAHgAwQAEAAAAIAAAAMTE1NjE5OAAe ADFAAQAAAAgAAAAxMTU2MTk4AB4AMkABAAAAHQAAAGpvcnJpdC5kZXZyaWVzQHN0dWRlbnQuaHUu bmwAAAAAHgAzQAEAAAAdAAAAam9ycml0LmRldnJpZXNAc3R1ZGVudC5odS5ubAAAAAAeADhAAQAA AAgAAAAxMTU2MTk4AB4AOUABAAAAAgAAAC4AAAADAHZA/////wsAKQAAAAAACwAjAAAAAAADAAYQ uYZAaAMABxD5AgAAAwAQEAAAAAADABEQAAAAAB4ACBABAAAAZQAAAEhFTExPLElBTVNPUlJZLEJV VElGT1JHT1RUT01FTlRJT05XSEFUSUFNVVNJTkdMT0c0Q1hYLTA5N1ZJU1VBTFNUVURJTzIwMDVC RVNUUkVHQVJEUyxKT1JSSVQtLS0tLU9SSUcAAAAAAgF/AAEAAABHAAAAPDdGOTgxQjQwOTlCRUZB NDU5RjdDNDg0NDdDMTRERkE0MDU0MUNEQFVTVERFWFYwMS5zdHVkZW50ZW4uYWQuaHZ1Lm5sPgAA ZLA= ------_=_NextPart_001_01C760D4.88CC3784-- From log4cxx-user-returnugarcia@example.com Wed Mar 07 19:28:36 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 69174 invoked from network); 7 Mar 2007 19:28:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Mar 2007 19:28:36 -0000 Received: (qmail 93018 invoked by uid 500); 7 Mar 2007 19:28:43 -0000 Delivered-To: ugarcia@example.com Received: (qmail 92996 invoked by uid 500); 7 Mar 2007 19:28:43 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 92985 invoked by uid 99); 7 Mar 2007 19:28:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 11:28:43 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO smtp103.sbc.mail.mud.yahoo.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 07 Mar 2007 11:28:30 -0800 Received: (qmail 60401 invoked from network); 7 Mar 2007 19:28:09 -0000 Received: from unknown (HELO ?83.161.120.155?) (ugarcia@example.com@83.161.120.155 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 7 Mar 2007 19:28:08 -0000 X-YMail-OSG: ObiSSMEVM1nyim4unmXKABX5JYij.Q7x0qEtaq0UYrZ7jEV5gUnQkq0iy7dq9TKso00H921N2ZHlkz4loAuSpONd28u0Tm_4isBYpJsPRN.uSth3Y_cpmKJBKaicgQAOTXJfFc4IJfwndl8- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <ugarcia@example.com> References: <ugarcia@example.com> Content-Type: multipart/alternative; boundary=Apple-Mail-2--432532594 Message-Id: <ugarcia@example.com> From: Curt Arnold <ugarcia@example.com> Subject: Re: compile errors using LOG4CXX_DEBUG Date: Wed, 7 Mar 2007 13:27:59 -0600 To: Log4CXX User <ugarcia@example.com> X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-2--432532594 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Mar 7, 2007, at 10:14 AM, jorrit de vries wrote: > Hello, > > I get the following errors every time I use the LOG4CXX_DEBUG macro. > > I use the following syntax: > LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); > > where 'logger' is defined in the class as: > static LoggerPtr logger; > > This is the part of the build log I get for the line above: > error C2589: ',' : illegal token on right side of '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' > error C2143: syntax error : missing ')' before '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' > error C2661: 'log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Logger888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4orcedLog' : no overloaded function > takes 0 arguments > error C2059: syntax error : ')' > > Can anybody point me to what I am doing wrong and how I might > prevent this error? > > Best regards, > Jorrit > log4cxx-0.9.7 is not recommended due to many issues that have been corrected in the SVN. I had hoped to package a new release in the last month or so, but log4j issues kept that from happening. The LOG4CXX_DEBUG macros are defined differently in 0.9.7 and the current SVN head. In 0.9.7, the second argument is a fragment of a stream statement, #define LOG4CXX_DEBUG(logger, message) { \ if (logger->isDebugEnabled()) {\ 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4StringBuffer oss; \ oss << message; \ logger->forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4UG, oss.str(), __FILE__, __LINE__); }} So the message parameter needs to be such that oss << message; results in a valid statement. So if you did LOG4CXX_DEBUG(logger, "Switching to tool"); or LOG4CXX_DEBUG(logger, "Switching to tool " << (*m_currentTool)->name); you should be okay. However: LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); isn't going to work since there is likely not a matching operator+. In the current SVN HEAD, #define LOG4CXX_DEBUG(logger, message) { \ if (LOG4CXX_UNLIKELY(logger->isDebugEnabled())) {\ logger->forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4getDebug(), message, LOG4CXX_LOCATION); }} the message parameter needs to be match one of the prototypes for forcedLog (currently st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string or st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4wstring). So you could likely do: LOG4CXX_DEBUG(logger, st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string("Switching to tool") + (*m_currentTool)->name); which should also work for log4cxx 0.9.7. --Apple-Mail-2--432532594 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Mar 7, 2007, at = 10:14 AM, jorrit de vries wrote:</DIV><BR = class=3D"Apple-interchange-newline"><BLOCKQUOTE type=3D"cite"> <P><FONT = size=3D"2">Hello,<BR> <BR> I get the following errors every time I use = the LOG4CXX_DEBUG macro.<BR> <BR> I use the following syntax:<BR> = LOG4CXX_DEBUG(logger, "Switching to tool " + = (*m_currentTool)-&gt;name);<BR> <BR> where 'logger' is defined in the = class as:<BR> static LoggerPtr logger;<BR> <BR> This is the part of the = build log I get for the line above:<BR> error C2589: ',' : illegal token = on right side of '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4'<BR> error C2143: syntax error : missing ')' before = '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4'<BR> error C2661: 'log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Logger888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4orcedLog' : no overloaded = function takes 0 arguments<BR> error C2059: syntax error : ')'<BR> <BR> = Can anybody point me to what I am doing wrong and how I might prevent = this error?<BR> <BR> Best regards,<BR> Jorrit</FONT> </P> = </BLOCKQUOTE><BR></DIV><DIV>log4cxx-0.9.7 is not recommended due to many = issues that have been corrected in the SVN.=A0 I had hoped to package a = new release in the last month or so, but log4j issues kept that from = happening.=A0 The LOG4CXX_DEBUG macros are defined differently in 0.9.7 = and the current SVN head.=A0 In 0.9.7, the second argument is a fragment = of a stream statement,=A0</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>#define = LOG4CXX_DEBUG(logger, message) { \</DIV><DIV><SPAN = class=3D"Apple-tab-span" style=3D"white-space:pre"> </SPAN>if = (logger-&gt;isDebugEnabled()) {\</DIV><DIV><SPAN class=3D"Apple-tab-span" = style=3D"white-space:pre"> </SPAN>888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4StringBuffer oss; = \</DIV><DIV><SPAN class=3D"Apple-tab-span" style=3D"white-space:pre"> = </SPAN>oss &lt;&lt; message; \</DIV><DIV><SPAN class=3D"Apple-tab-span" = style=3D"white-space:pre"> = </SPAN>logger-&gt;forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4UG, oss.str(), = __FILE__, __LINE__); }}</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>So the message parameter = needs to be such that=A0</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>oss &lt;&lt; = message;=A0</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>results in a valid = statement.=A0 So if you did</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>LOG4CXX_DEBUG(logger, = "Switching to tool");</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>or</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>LOG4CXX_DEBUG(logger, = "Switching to tool " &lt;&lt;=A0<FONT class=3D"Apple-style-span" = size=3D"2"><SPAN class=3D"Apple-style-span" style=3D"font-size: = 10px;">(*m_currentTool)-&gt;name);</SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">you should be okay.=A0 = However:</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" = size=3D"2"><SPAN class=3D"Apple-style-span" style=3D"font-size: = 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">LOG4CXX_DEBUG(logger, "Switching to tool " + = (*m_currentTool)-&gt;name);</SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">isn't going to work since there is likely not = a matching operator+.</SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">In the current SVN = HEAD,=A0</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" = size=3D"2"><SPAN class=3D"Apple-style-span" style=3D"font-size: = 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV>#define = LOG4CXX_DEBUG(logger, message) { \</DIV><DIV>=A0 =A0 =A0 =A0 if = (LOG4CXX_UNLIKELY(logger-&gt;isDebugEnabled())) {\</DIV><DIV>=A0 =A0 =A0 = =A0 =A0=A0 logger-&gt;forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4getDebug(), message, = LOG4CXX_LOCATION); }}</DIV><DIV><FONT class=3D"Apple-style-span" = size=3D"2"><SPAN class=3D"Apple-style-span" style=3D"font-size: = 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">the message parameter needs to be match one = of the prototypes for forcedLog (currently st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string or = st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4wstring).=A0 So you could likely do:</SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">LOG4CXX_DEBUG(logger, st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string("Switching = to tool") + (*m_currentTool)-&gt;name);</SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;">which should also work for log4cxx = 0.9.7.</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" = size=3D"2"><SPAN class=3D"Apple-style-span" style=3D"font-size: = 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT = class=3D"Apple-style-span" size=3D"2"><SPAN class=3D"Apple-style-span" = style=3D"font-size: 10px;"><BR = class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><BR></BODY></HTML>= --Apple-Mail-2--432532594-- From log4cxx-user-returnugarcia@example.com Thu Mar 08 01:40:50 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 42380 invoked from network); 8 Mar 2007 01:40:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Mar 2007 01:40:49 -0000 Received: (qmail 21087 invoked by uid 500); 8 Mar 2007 01:40:58 -0000 Delivered-To: ugarcia@example.com Received: (qmail 20813 invoked by uid 500); 8 Mar 2007 01:40:57 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 20802 invoked by uid 99); 8 Mar 2007 01:40:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 17:40:57 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO dempsey.hvu.nl) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2007 17:40:45 -0800 Received: from localhost (dempsey [83.161.120.155]) by dempsey.hvu.nl (Postfix) with ESMTP id 800451C00184 for <ugarcia@example.com>; Thu, 8 Mar 2007 02:40:22 +0100 (CET) Received: from dempsey.hvu.nl ([83.161.120.155]) by localhost (dempsey [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 21765-03 for <ugarcia@example.com>; Thu, 8 Mar 2007 02:40:22 +0100 (CET) Received: from umdwex04.medewerkers.ad.hvu.nl (frontend3.hu.nl [83.161.120.155]) by dempsey.hvu.nl (Postfix) with ESMTP id 0FA911C00175 for <ugarcia@example.com>; Thu, 8 Mar 2007 02:40:22 +0100 (CET) Received: from USTDEXV01.studenten.ad.hvu.nl ([83.161.120.155]) by umdwex04.medewerkers.ad.hvu.nl with Microsoft SMTPSVC(418)327-4557); Thu, 8 Mar 2007 02:40:21 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C76122.BC38B716" Subject: RE: compile errors using LOG4CXX_DEBUG Date: Thu, 8 Mar 2007 02:39:05 +0100 Message-ID: <ugarcia@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: <ugarcia@example.com> Thread-Topic: compile errors using LOG4CXX_DEBUG Thread-Index: Acdg7s6b1YwZ677BT/67ms51M4CyYQAM8AIv References: <ugarcia@example.com> <ugarcia@example.com> From: "jorrit de vries" <ugarcia@example.com> To: "Log4CXX User" <ugarcia@example.com> X-OriginalArrivalTime: 08 Mar 2007 01:40:21.0561 (UTC) FILETIME=[BC14CA90:01C76122] X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at hvu.nl X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C76122.BC38B716 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable So actually you recommend to obtain the latest addition from SVN? I'll give it a shot. Thank you! -----Original Message----- From: Curt Arnold [mailto:ugarcia@example.com] Sent: Wed 3/7/2007 20:27 To: Log4CXX User Subject: Re: compile errors using LOG4CXX_DEBUG =20 On Mar 7, 2007, at 10:14 AM, jorrit de vries wrote: > Hello, > > I get the following errors every time I use the LOG4CXX_DEBUG macro. > > I use the following syntax: > LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); > > where 'logger' is defined in the class as: > static LoggerPtr logger; > > This is the part of the build log I get for the line above: > error C2589: ',' : illegal token on right side of '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' > error C2143: syntax error : missing ')' before '888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4' > error C2661: 'log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Logger888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4orcedLog' : no overloaded function =20 > takes 0 arguments > error C2059: syntax error : ')' > > Can anybody point me to what I am doing wrong and how I might =20 > prevent this error? > > Best regards, > Jorrit > log4cxx-0.9.7 is not recommended due to many issues that have been =20 corrected in the SVN. I had hoped to package a new release in the =20 last month or so, but log4j issues kept that from happening. The =20 LOG4CXX_DEBUG macros are defined differently in 0.9.7 and the current =20 SVN head. In 0.9.7, the second argument is a fragment of a stream =20 statement, #define LOG4CXX_DEBUG(logger, message) { \ if (logger->isDebugEnabled()) {\ 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4StringBuffer oss; \ oss << message; \ logger->forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4UG, oss.str(), __FILE__, =20 __LINE__); }} So the message parameter needs to be such that oss << message; results in a valid statement. So if you did LOG4CXX_DEBUG(logger, "Switching to tool"); or LOG4CXX_DEBUG(logger, "Switching to tool " << (*m_currentTool)->name); you should be okay. However: LOG4CXX_DEBUG(logger, "Switching to tool " + (*m_currentTool)->name); isn't going to work since there is likely not a matching operator+. In the current SVN HEAD, #define LOG4CXX_DEBUG(logger, message) { \ if (LOG4CXX_UNLIKELY(logger->isDebugEnabled())) {\ logger->forcedLog(888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4log4cxx888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4Level888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4getDebug(), message, =20 LOG4CXX_LOCATION); }} the message parameter needs to be match one of the prototypes for =20 forcedLog (currently st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string or st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4wstring). So you could =20 likely do: LOG4CXX_DEBUG(logger, st888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4string("Switching to tool") + =20 (*m_currentTool)->name); which should also work for log4cxx 0.9.7. ------_=_NextPart_001_01C76122.BC38B716 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 eJ8+IhcBAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEgAEAJwAAAFJFOiBjb21waWxlIGVycm9y cyB1c2luZyBMT0c0Q1hYX0RFQlVHAMwMAQWAAwAOAAAA1wcDAAgAAgAnAAUABAAbAQEggAMADgAA ANcHAwAIAAIAKAAVAAQALAEBCYABACEAAABGQ0I5NkM3RjMwMDI5RDQ2ODhFM0EzREZEM0MyMkFF QQBxBwEDkAYA6A0AADkAAAADACYAAAAAAAMANgAAAAAAQAA5ALLnqI4iYccBHgA9AAEAAAAFAAAA UkU6IAAAAAACAUcAAQAAADwAAABjPU5MO2E9IDtwPUhvZ2VzY2hvb2wgdmFuIFU7bD1VU1RERVhW MDEtMDcwMzA4MDE0MDIxWi0xMTAyMQAeAEkAAQAAACcAAABSZTogY29tcGlsZSBlcnJvcnMgdXNp bmcgTE9HNENYWF9ERUJVRwAAQABOAICJ4LbuYMcBHgBaAAEAAAAMAAAAQ3VydCBBcm5vbGQAAgFb AAEAAAA8AAAAAAAAAIErH6S+oxAZnW4A3QEPVAIAAAAAQ3VydCBBcm5vbGQAU01UUABjYXJub2xk QGFwYWNoZS5vcmcAAgFcAAEAAAAYAAAAU01UUDpDQVJOT0xEQEFQQUNIRS5PUkcAHgBdAAEAAAAM AAAAQ3VydCBBcm5vbGQAAgFeAAEAAAA8AAAAAAAAAIErH6S+oxAZnW4A3QEPVAIAAAAAQ3VydCBB cm5vbGQAU01UUABjYXJub2xkQGFwYWNoZS5v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Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 9791 invoked from network); 13 Mar 2007 20:31:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 13 Mar 2007 20:31:41 -0000 Received: (qmail 23805 invoked by uid 500); 13 Mar 2007 20:31:48 -0000 Delivered-To: ugarcia@example.com Received: (qmail 23782 invoked by uid 500); 13 Mar 2007 20:31:48 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 23771 invoked by uid 99); 13 Mar 2007 20:31:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 13:31:47 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=HTML_00_10,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO an-out-0708.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Mar 2007 13:31:36 -0700 Received: by an-out-0708.google.com with SMTP id c31so1863265ana for <ugarcia@example.com>; Tue, 13 Mar 2007 13:31:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=tDHdvkGYdQlGMgfEXNwo9s6uTEZFnJLsr9Hx7JuGZuyAtlcGjwg/A3NZb4Jd16DbXzchMKWKvyjORuA7v4XT7tHHZYcmeWsCH6e5VVRjT3qlKdTjFss+ktdkh4rHPkVf6L7ul6THL90CPvtTlvcasJ5sr78AlFlaCPbHgTuZAUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=oEHcOGR2gek6Kjtxjkr3JeZDAGV8BR8mv/SqRxMKZH293C7BgNEyOUpx0QueWRp8hPFHF5Is/aRn/v780Aa1kVUhpPHuxXDpv92Yj6fRJ+52sc3cllwaL6AwWvlM5as6oa4cwLienPG1TKYLvYB451X04z/5oRGo8cpgd96bPDw= Received: by 83.161.120.155 with SMTP id u15mr1279397anf.1173817875032; Tue, 13 Mar 2007 13:31:15 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 13 Mar 2007 13:31:14 -0700 (PDT) Message-ID: <ugarcia@example.com> Date: Tue, 13 Mar 2007 16:31:14 -0400 From: "Scott Gentry" <ugarcia@example.com> To: ugarcia@example.com Subject: SVN Head Config trouble MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26663_326570.1173817874905" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26663_326570.1173817874905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I believe that I am having an issue with the configuration script. When I run make after running configure (I set my own prefix, and location of apr and apr-util), I get an error when I get to charsetdecoder.cpp The error states that No default charset encoder available. I looked in the Makefile that config created and see that locale is set to {$datarootdir}/locale datarootdir is set to {$prefix}/share. I symlinked that locale directory to different locale directories on my system (Solaris 9), but I still got that error each time I attempt to build. Is the configure script supposed to determine which locale to use? I thought it would have been derived from --with-charset=utf-8 being set (I get the same error if I set it or leave it to be selected as it is the default value). If that is not the case then what is the Makefile expecting to be at the locale it defined? The only other thing I can think of is that this system is running on a KVM. So let's say that I am running dos2unix on a file, I will get an error stating that the keyboard type couldn't be determined (no physical keyboard is connected to that guy directly, it is through the KVM). Could that be causing a problem? If so is there any way possible to set the locale to UTF8 when building? If any of this is unclear please let me know. Thanks, Scott Gentry ------=_Part_26663_326570.1173817874905 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I believe that I am having an issue with the configuration script.&nbsp; When I run make after running configure (I set my own prefix, and location of apr and apr-util), I get an error when I get to charsetdecoder.cpp&nbsp; The error states that No default charset encoder available.&nbsp; I looked in the Makefile that config created and see that locale is set to {$datarootdir}/locale&nbsp; datarootdir is set to {$prefix}/share.&nbsp; I symlinked that locale directory to different locale directories on my system (Solaris 9), but I still got that error each time I attempt to build. <br><br>Is the configure script supposed to determine which locale to use?&nbsp; I thought it would have been derived from --with-charset=utf-8 being set (I get the same error if I set it or leave it to be selected as it is the default value).&nbsp; <br><br>If that is not the case then what is the Makefile expecting to be at the locale it defined?&nbsp; <br><br>The only other thing I can think of is that this system is running on a KVM.&nbsp; So let&#39;s say that I am running dos2unix on a file, I will get an error stating that the keyboard type couldn&#39;t be determined (no physical keyboard is connected to that guy directly, it is through the KVM).&nbsp; Could that be causing a problem?&nbsp; If so is there any way possible to set the locale to UTF8 when building? <br><br><br>If any of this is unclear please let me know.<br><br>Thanks,<br><br>Scott Gentry<br> ------=_Part_26663_326570.1173817874905-- From log4cxx-user-returnugarcia@example.com Mon Mar 19 20:10:42 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 35385 invoked from network); 19 Mar 2007 20:10:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 19 Mar 2007 20:10:41 -0000 Received: (qmail 36727 invoked by uid 500); 19 Mar 2007 20:10:48 -0000 Delivered-To: ugarcia@example.com Received: (qmail 36707 invoked by uid 500); 19 Mar 2007 20:10:48 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 36692 invoked by uid 99); 19 Mar 2007 20:10:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2007 13:10:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO pluto.phpwebhosting.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 19 Mar 2007 13:10:37 -0700 Received: (qmail 30633 invoked from network); 19 Mar 2007 20:10:10 -0000 Received: from unknown (HELO OCTOBER) (83.161.120.155) by pluto.phpwebhosting.com with SMTP; Mon, 19 Mar 2007 16:10:10 -0400 Reply-To: <ugarcia@example.com> From: "Stephen Bartnikowski" <ugarcia@example.com> To: "'Log4CXX User'" <ugarcia@example.com> Subject: static link to libexpat Date: Mon, 19 Mar 2007 15:11:18 -0500 Organization: Barking Lizards Technologies Message-ID: <002f01c76a62$c1951260$12dea8c0@OCTOBER> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdqYsEzIfWN1tUOTG2vU1rlZfxC6A== X-Virus-Checked: Checked by ClamAV on apache.org Hello, I wanted to link log4cxx statically to libexpat, which I managed to do, but only by altering the build.xml file like so: Since I already had libexpat, I changed this line: - <libset libs="expat" if="has-expat"/> + <libset libs="expat" type="static"/> And also added this line beneath the cppunit lib properties. +<property name="expat.lib.type" value="static"/> Granted I probably didn't need to specify static in two locations in the build script. However, was there an easier way to do this? I tried building with the following options: ant -Ddebug=false -Dlib.type=shared -Dexpat.lib.type=shared but I don't think that expat lib type options are recognized. Thanks! Steve From log4cxx-user-returnugarcia@example.com Tue Mar 27 11:35:50 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 18718 invoked from network); 27 Mar 2007 11:35:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 27 Mar 2007 11:35:49 -0000 Received: (qmail 38319 invoked by uid 500); 27 Mar 2007 11:35:55 -0000 Delivered-To: ugarcia@example.com Received: (qmail 38301 invoked by uid 500); 27 Mar 2007 11:35:55 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 38290 invoked by uid 99); 27 Mar 2007 11:35:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 04:35:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 04:35:46 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HW9x8-00044U-2k for ugarcia@example.com; Tue, 27 Mar 2007 13:35:02 +0200 Received: from gatek.sysde.eads.net ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Tue, 27 Mar 2007 13:35:02 +0200 Received: from alexander.a.baur by gatek.sysde.eads.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Tue, 27 Mar 2007 13:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ugarcia@example.com From: Alexander Baur <ugarcia@example.com> Subject: Create a new log file at every start of the programm Date: Tue, 27 Mar 2007 11:31:02 +0000 (UTC) Lines: 28 Message-ID: <ugarcia@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: ugarcia@example.com X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 83.161.120.155 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; UL611072003NET)) Sender: news <ugarcia@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, I'm using log4cxx on a windows machine. Everything works fine up to now. But I've got a problem: Is there any possibility to create a new log file every time i start my program? So I don't want to base file rolling on the file size but on the start of my application. For example I start my program for the first time and this creates the log file "logfile.log". Now when I close the application and restart it, the old file should be renamed to "logfile_1.log" and the new one to "logfile.log". With the RollingFileAppender I can only roll over the old files when a file gets bigger than the MaximumFileSize and with the DailyRollingFileAppender it creates, depending on the configuration, a new log file every minute/hour/.. I hope anyone can help me. Regards Alex Baur From log4cxx-user-returnugarcia@example.com Tue Mar 27 11:43:18 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 21539 invoked from network); 27 Mar 2007 11:43:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 27 Mar 2007 11:43:17 -0000 Received: (qmail 50930 invoked by uid 500); 27 Mar 2007 11:43:24 -0000 Delivered-To: ugarcia@example.com Received: (qmail 50912 invoked by uid 500); 27 Mar 2007 11:43:24 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 50900 invoked by uid 99); 27 Mar 2007 11:43:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 04:43:23 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mu-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 04:43:14 -0700 Received: by mu-out-0910.google.com with SMTP id w8so3254227mue for <ugarcia@example.com>; Tue, 27 Mar 2007 04:42:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=o5/Xsb0tjVexpP5+FcYVg7u7bHgBDF41wAuTVRd0hjR5Fp8Y66xUGtYIkZ/nz5ZXFatRI3GKuAjyIwS96RJMh46jhdZ5cRZHYq2rNd0IFd0AIRU0UHNr42wwBtPJFZZhD0BriWnMsscXxshliWRx/Sz2M4IP/5+hIPxz/mkUavY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hEIFJbzGjb8D5Up6/CEXfksz1jZh/wzpq+fzcDWKQk5v/iuymCkDHZP863CsK/L74yuRixL5J8N1To3u6x8MGlboDJAgB0SXsxNBPYl/MJUg6nJa/a6YfTO0bt8CsVicEx6DW5nfwjCs/F9Uq4Ga2R1PPSJHH/xBRG0NnweQ2e8= Received: by 83.161.120.155 with SMTP id k14mr16023816bue.1174995772880; Tue, 27 Mar 2007 04:42:52 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Tue, 27 Mar 2007 04:42:52 -0700 (PDT) Message-ID: <ugarcia@example.com> Date: Tue, 27 Mar 2007 17:12:52 +0530 From: "Anand Sherkhane" <ugarcia@example.com> To: "Log4CXX User" <ugarcia@example.com> Subject: Re: Create a new log file at every start of the programm In-Reply-To: <ugarcia@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3828_15800794.1174995772828" References: <ugarcia@example.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3828_15800794.1174995772828 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I do not know if log4cxx supports this out-of-the-box but for your application to do it should be a simple task, I guess. Upon exit OR start, the application checks if their exists a log file and renames it(with current timestamp, say), if it is. Regards, Anand. On 3/27/07, Alexander Baur <ugarcia@example.com> wrote: > > Hi, > > I'm using log4cxx on a windows machine. Everything works fine up to now. > > But I've got a problem: > > > Is there any possibility to create a new log file every time i start my > program? > > So I don't want to base file rolling on the file size but on the start of > my > application. > > For example I start my program for the first time and this creates the log > file "logfile.log". > > Now when I close the application and restart it, the old file should be > renamed to "logfile_1.log" and the new one to "logfile.log". > With the RollingFileAppender I can only roll over the old files when a > file > gets bigger than the MaximumFileSize and with the DailyRollingFileAppender > it > creates, depending on the configuration, a new log file every > minute/hour/.. > > I hope anyone can help me. > > Regards > Alex Baur > > ------=_Part_3828_15800794.1174995772828 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,<br><br>I do not know if log4cxx supports this out-of-the-box but for your application to do it should be a simple task, I guess.<br><br>Upon exit OR start, the application checks if their exists a log file and renames it(with current timestamp, say), if it is. <br><br>Regards,<br>Anand.<br><br><div><span class="gmail_quote">On 3/27/07, <b class="gmail_sendername">Alexander Baur</b> &lt;<a href="mailto:ugarcia@example.com">ugarcia@example.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br><br>I&#39;m using log4cxx on a windows machine. Everything works fine up to now.<br><br>But I&#39;ve got a problem:<br><br><br>Is there any possibility to create a new log file every time i start my<br>program?<br> <br>So I don&#39;t want to base file rolling on the file size but on the start of my<br>application.<br><br>For example I start my program for the first time and this creates the log<br>file &quot;logfile.log&quot;.<br><br> Now when I close the application and restart it, the old file should be<br>renamed to &quot;logfile_1.log&quot; and the new one to &quot;logfile.log&quot;.<br>With the RollingFileAppender I can only roll over the old files when a file <br>gets bigger than the MaximumFileSize and with the DailyRollingFileAppender it<br>creates, depending on the configuration, a new log file every minute/hour/..<br><br>I hope anyone can help me.<br><br>Regards<br>Alex Baur <br><br></blockquote></div><br> ------=_Part_3828_15800794.1174995772828-- From log4cxx-user-returnugarcia@example.com Tue Mar 27 12:02:22 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 28124 invoked from network); 27 Mar 2007 12:02:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 27 Mar 2007 12:02:22 -0000 Received: (qmail 75285 invoked by uid 500); 27 Mar 2007 12:02:28 -0000 Delivered-To: ugarcia@example.com Received: (qmail 75268 invoked by uid 500); 27 Mar 2007 12:02:28 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 75253 invoked by uid 99); 27 Mar 2007 12:02:28 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 05:02:28 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Mar 2007 05:02:20 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HWALY-0000f7-BU for ugarcia@example.com; Tue, 27 Mar 2007 14:00:16 +0200 Received: from gatek.sysde.eads.net ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Tue, 27 Mar 2007 14:00:16 +0200 Received: from alexander.a.baur by gatek.sysde.eads.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <ugarcia@example.com>; Tue, 27 Mar 2007 14:00:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ugarcia@example.com From: Alexander Baur <ugarcia@example.com> Subject: Re: Create a new log file at every start of the programm Date: Tue, 27 Mar 2007 11:59:57 +0000 (UTC) Lines: 27 Message-ID: <ugarcia@example.com> References: <ugarcia@example.com> <ugarcia@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: ugarcia@example.com X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 83.161.120.155 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; UL611072003NET)) Sender: news <ugarcia@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Anand Sherkhane <anandis <at> gmail.com> writes: > > > Hi,I do not know if log4cxx supports this out-of-the-box but for your application to do it should be a simple task, I guess.Upon exit OR start, the application checks if their exists a log file and renames it(with current timestamp, say), if it is. > Regards,Anand. Hi Anand, thanks for your reply. But I think it should be a normal function for a logging library to create logfiles for each start of an application. The renaming was only an example. Of course it would also be okay using the rollOver Function of log4cxx. But logging seems either size or time related. Hm, if there's no alternative I've got to do it my own. Best regards, Alex From log4cxx-user-returnugarcia@example.com Thu Mar 29 09:54:47 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 80799 invoked from network); 29 Mar 2007 09:54:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 29 Mar 2007 09:54:45 -0000 Received: (qmail 59038 invoked by uid 500); 29 Mar 2007 09:54:51 -0000 Delivered-To: ugarcia@example.com Received: (qmail 59017 invoked by uid 500); 29 Mar 2007 09:54:51 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 59006 invoked by uid 99); 29 Mar 2007 09:54:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 02:54:51 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mu-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 02:54:43 -0700 Received: by mu-out-0910.google.com with SMTP id w8so131891mue for <ugarcia@example.com>; Thu, 29 Mar 2007 02:54:22 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=roY0iqwIr7p+fJrWFPASWhRbggmkoOj9hgoT+ajiMTiFLVreEtl7Sgb7ocSCLbLUzevnYRsmFWOePzbirHEpUB9yCI7nZb+yvnUkgxkSAuT4DVMMcaY3TYwvRx+KswEWVUNwU/z34KmNo5LvIznYbxsNzuQH/AyvLGdU5dN0Uzg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=qGga4bzuGI3YEP9gcP9AEijy/iGwlbpqD8PCMSe1WgwfzyhAyTUB9NkkTdmRCHdc2Y/eupsCA+cDPG5sl0dqj3V1oSZiv6tpM/V+IfndiuZAoleeNLGhIahGxglqpCg1+o0N2md32ZdChi8/V2LlqjoRQuMwDtjDO20PPKT5wXI= Received: by 83.161.120.155 with SMTP id i4mr1058890buc.1175162061592; Thu, 29 Mar 2007 02:54:21 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 29 Mar 2007 02:54:21 -0700 (PDT) Message-ID: <ugarcia@example.com> Date: Thu, 29 Mar 2007 15:24:21 +0530 From: "Anand Sherkhane" <ugarcia@example.com> To: ugarcia@example.com Subject: Official word on next release of log4cxx MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27450_29753770.1175162061561" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_27450_29753770.1175162061561 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I was using log4cxx 0.9.7 and during trial runs, it started crashing. Our customer got paranoid when he read following statement at http://logging.apache.org/log4cxx: Regards, Anand. ------=_Part_27450_29753770.1175162061561 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,<br><br>I was using log4cxx 0.9.7 and during trial runs, it started crashing. Our customer got paranoid when he read following statement at <a href="http://logging.apache.org/log4cxx">http://logging.apache.org/log4cxx</a> :<br><br><br>Regards,<br>Anand.<br><br> ------=_Part_27450_29753770.1175162061561-- From log4cxx-user-returnugarcia@example.com Thu Mar 29 10:07:52 2007 Return-Path: <log4cxx-user-returnugarcia@example.com> Delivered-To: ugarcia@example.com Received: (qmail 84544 invoked from network); 29 Mar 2007 10:07:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 29 Mar 2007 10:07:52 -0000 Received: (qmail 74801 invoked by uid 500); 29 Mar 2007 10:07:58 -0000 Delivered-To: ugarcia@example.com Received: (qmail 74780 invoked by uid 500); 29 Mar 2007 10:07:58 -0000 Mailing-List: contact ugarcia@example.com; run by ezmlm Precedence: bulk list-help: <mailto:ugarcia@example.com> list-unsubscribe: <mailto:ugarcia@example.com> List-Post: <mailto:ugarcia@example.com> Reply-To: "Log4CXX User" <ugarcia@example.com> List-Id: <log4cxx-user.logging.apache.org> Delivered-To: mailing list ugarcia@example.com Received: (qmail 74769 invoked by uid 99); 29 Mar 2007 10:07:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 03:07:58 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ugarcia@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO mu-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 03:07:50 -0700 Received: by mu-out-0910.google.com with SMTP id w8so134398mue for <ugarcia@example.com>; Thu, 29 Mar 2007 03:07:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Vg3jPfk+mP5k/ves6cuwmozqwRi1O/S5z907YyXd/EZmkupJ/96mDi+vLKm/mTTAX7fVG97p86NSOKo2EC64lasd/bJElsT5CebjL29ewjMFfeCuV8fj23rlQYttp3ujZAImcYCvZbB2VYm3wmGOagHqKPSAWSJMfDHK5S8JhMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=LzulQ9j7NAHSNg+8d7pCgofc4fzTj6WF7rwYvh8jQO9ZUiDB7PVcBYTtC/PattMTyWXDx7cvnWBbDP3AG+JKXruifbdCoV/HY/wzZziluoshxAVW+FyixUuemfIYaRUU+Qk1LD0ePs5DN/LK+17zKZbbpqb9WFl+Y/IoFfMCJpI= Received: by 83.161.120.155 with SMTP id b2mr1085727bue.1175162848453; Thu, 29 Mar 2007 03:07:28 -0700 (PDT) Received: by 83.161.120.155 with HTTP; Thu, 29 Mar 2007 03:07:23 -0700 (PDT) Message-ID: <ugarcia@example.com> Date: Thu, 29 Mar 2007 15:37:23 +0530 From: "Anand Sherkhane" <ugarcia@example.com> To: ugarcia@example.com Subject: Re: Official word on next release of log4cxx In-Reply-To: <ugarcia@example.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_27554_4466411.1175162843419" References: <ugarcia@example.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_27554_4466411.1175162843419 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm terribly sorry for my incomplete previous mail(my browser has mapped few keys and it was sent accidentally) Here it is again. I was using log4cxx v0.9.7 and during trial runs, it started crashing(I think the reason was as mentioned in http://issues.apache.org/jira/browse/LOGCXX-4). Our customer got skeptical(obviously) when he read following statement at http://logging.apache.org/log4cxx: "At this point, log4cxx-0.9.7 is substantially out of date, has known serious deficiencies that have been resolved in the CVS, and should be
{'source': 'Apache Software Foundation Public Mail Archives'}