logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From narts <nar...@devannetworks.com>
Subject log4cxx and localtime( &thislogtime) in vc++ 8.0
Date Tue, 25 Mar 2008 15:49:08 GMT

i am using log4cxx-0.9.7 with visual studio 2005 on Windows Server 2003 
Enterprise Edition.
When is use log4cxx and win32 function localtime( &thislogtime)
localtime() is retriving the wrong time 
when is exclude log4cxx, it is working fine

sample code is....

root = Logger::getRootLogger();
logger = Logger::getLogger(_T("loggger.testlog"));
time_t thislogtime;
time( &thislogtime );
newtime=localtime( &thislogtime) ;

is it a bug in log4cxx-0.9.7? please any help.....


View this message in context: http://www.nabble.com/log4cxx-and-localtime%28--thislogtime%29-in-vc%2B%2B-8.0-tp16276522p16276522.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.

View raw message