On 1/7/2011 6:02 AM, Matthew Bingham wrote:
double tmp = 100.12345;
LOG4CXX_DEBUG(logger_,"value is "<<tmp);


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)
        << tmp);

Or you could have your own macros that did those steps.

    Is there a way to do it from the xml configuration file?


I still think the answer to this part of the question is no, not without coding your own layout handler or something that would then pick up settings from the config file.

--
Jacob Anawalt
Gecko Software, Inc.
janaw...@geckosoftware.com
435-752-8026

Reply via email to