Re: double precision

2011-01-07 Thread Jacob L. Anawalt
On 1/7/2011 6:02 AM, Matthew Bingham wrote: double tmp = 100.12345; LOG4CXX_DEBUG(logger_,"value is "< The value of the variable was 100.12345 but only 100.123 was logged. How can I log the extra decimal places? LOG4CXX_DEBUG(logger_,"value is " << std::fixed << std::precision(5) <<

RE: double precision

2011-01-07 Thread Ken Sheldon
meInteger, strValue.c_str() ) From: Matthew Bingham [mailto:texbing...@gmail.com] Sent: Friday, January 07, 2011 7:03 AM To: log4cxx-user@logging.apache.org Subject: Re: double precision Sorry for not being more specific. If I use the following code with the log4cxx.xml set to use a FileAppender

Re: double precision

2011-01-07 Thread Thorsten Schöning
Guten Tag Matthew Bingham, am Freitag, 7. Januar 2011 um 14:02 schrieben Sie: > I know one way is to use std::stringstream, set its precision, build the > string myself, then pass it into log4cxx. However, I am concerned about > performance and would hate to build the string only for it not to be

Re: double precision

2011-01-07 Thread Matthew Bingham
Sorry for not being more specific. If I use the following code with the log4cxx.xml set to use a FileAppender: DOMConfigurator::configure("log4cxx.xml"); logger_ = Logger::getLogger("TestApp"); double tmp = 100.12345; LOG4CXX_DEBUG(logger_,"value is " I cannot seem to find an answer to

Re: double precision

2011-01-04 Thread Jacob L. Anawalt
On 1/3/2011 9:02 PM, Matthew Bingham wrote: I cannot seem to find an answer to this anywhere. How can I increase decimal precision when logging? Something like std::stringstream::precision(). Is there a way to do it from the xml configuration file? Increase the precision of what? Your appl

double precision

2011-01-03 Thread Matthew Bingham
I cannot seem to find an answer to this anywhere. How can I increase decimal precision when logging? Something like std::stringstream::precision(). Is there a way to do it from the xml configuration file? Thanks