Hi Curt,
I polled out latest SVN HEAD codes and build, link it. Everything is fine
right now. Thanks for your great works. Having insertion operators in the
LOG4CXX_INFO, etc is very useful and also convenient for me. I don't need
to convert log output to string any more. :-)
BTW, I have another questions, does RollingFileAppender support following
feature:
1. Archive function. For example, archieve all log file to a configured
location if achieving a configured size.
2. Naming log file by date. For example, log.1.20070920, log.2.20070920,
log.1.20070921, ...
If not, do you have plan to add it?
Best Regards
Leslie
From: "leslie wang" <[EMAIL PROTECTED]>
Reply-To: "Log4CXX Dev" <[email protected]>
To: [email protected]
Subject: Re: LOG4CXX_LOG usage change from 0.9.7 to 0.10
Date: Thu, 27 Sep 2007 16:34:40 +0000
Hi Curt,
Thanks for your reply. The 0.10.0 what I have was polled out on
Sep.20, 5 days before new commit. Let me poll out new one and have a
run. Any finding will let you know. Thanks again.
Best Regards
Leslie
From: Curt Arnold <[EMAIL PROTECTED]>
Reply-To: "Log4CXX Dev" <[email protected]>
To: "Log4CXX Dev" <[email protected]>
Subject: Re: LOG4CXX_LOG usage change from 0.9.7 to 0.10
Date: Thu, 27 Sep 2007 11:01:01 -0500
On Sep 27, 2007, at 1:26 AM, leslie wang wrote:
Hi All,
I'm used log4cxx 0.9.7 in my project. Today I updated it to 0.10
and found LOG4CXX_LOG/INFO/... API change. In the past, I can use
LOG4CXX_LOG(logger, "aaa" <<< "bbb" << 10)
but now all of them are reporting error. I check the header file.
The MACRO change to a string now. Why does it have the change? If
I want to keep mininal change in my code, how should I do? thanks
Best regards
Leslie
Just in the last few days, the log4cxx SVN HEAD was modified to
restore the ability to use insertion operators in the LOG4CXX_INFO
and similar macros. The history of why that capability was lost
and what was done to restore it was described in a log4cxx-dev
posting on 2007-09-25
(http://marc.info/?l=log4cxx-dev&m=119070382817489&w=2).
Please update your source to the latest and see if you still have
the same problem. (You can tell by examining logger.h, it is the
latest if it contains:
::log4cxx::helpers::MessageBuffer oss_; \
If the variable name is buf, then it is a couple of days old and
will have problems if you log variables named "buf". If it
doesn't use MessageBuffer then it is somewhere between 3 days and
3 years old and would not be expected to support insertion
operators at al.
If you do have problems with the latest code, please provide the
specifics of the problem so that we can address it (sample code,
compiler messages, name and version of compiler and operating
system in use).
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn