Re: Use of operator<

2008-03-19 Thread Curt Arnold
On Mar 19, 2008, at 11:40 AM, Jacob L. Anawalt wrote: Curt Arnold wrote: On Mar 18, 2008, at 12:01 PM, Jacob L. Anawalt wrote: again. If it hadn't been, I was thinking that the current online API docs looked a little more efficient for simple strings (which is where I currently use the l

Re: Use of operator<

2008-03-19 Thread Jacob L. Anawalt
Curt Arnold wrote: On Mar 18, 2008, at 12:01 PM, Jacob L. Anawalt wrote: again. If it hadn't been, I was thinking that the current online API docs looked a little more efficient for simple strings (which is where I currently use the logging macros), and that I would re-implement the older s

Re: Use of operator<

2008-03-18 Thread Curt Arnold
On Mar 18, 2008, at 12:01 PM, Jacob L. Anawalt wrote: Stephen Bartnikowski wrote: -Original Message- From: Josh Kelley [mailto:[EMAIL PROTECTED] LOG4CXX_DEBUG(logger, "Read " << path << " and got " << out); Nice. I hadn't tried that since 'message' was documented to expect a st

RE: Use of operator<

2008-03-18 Thread Stephen Bartnikowski
> -Original Message- > From: Curt Arnold [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2008 10:42 AM > To: Log4CXX User > Subject: Re: Use of operator<< > > > On Mar 18, 2008, at 10:25 AM, Stephen Bartnikowski wrote: > > > > Hi Josh

Re: Use of operator<

2008-03-18 Thread Jacob L. Anawalt
Stephen Bartnikowski wrote: -Original Message- From: Josh Kelley [mailto:[EMAIL PROTECTED] LOG4CXX_DEBUG(logger, "Read " << path << " and got " << out); Nice. I hadn't tried that since 'message' was documented to expect a string and I didn't know if it would break in future ver

Re: Use of operator<

2008-03-18 Thread Curt Arnold
On Mar 18, 2008, at 10:25 AM, Stephen Bartnikowski wrote: Hi Josh, As far as I can tell support was dropped for those macros, which made me sad too. But it's not too hard to cook up some macros of your own. I did it like this: #define LOGGING_DEBUG(message) { \ if ((*pLogger)->isDebugE

RE: Use of operator<

2008-03-18 Thread Stephen Bartnikowski
> -Original Message- > From: Josh Kelley [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 18, 2008 9:10 AM > To: log4cxx-user@logging.apache.org > Subject: Use of operator<< > > I saw that I can use the << operator within the LOG4CXX_DEBUG, etc. >

Use of operator<

2008-03-18 Thread Josh Kelley
o use something like boost::format for every log statement), but as far as I can tell, it's undocumented. Is this use of operator<< officially supported, or is it an implementation detail that I should not be relying upon? If it is supported, then can I add a wiki page about it? If it&#x