gandriotakis wrote:I tried setting "times" to "local" but it seemed to have no effect.
AutoPtr<Poco::Channel> pChannel (new Poco::FileChannel(logFile));
pChannel->setProperty(Poco::FileChannel::PROP_TIMES, "local");
AutoPtr<Poco::Formatter> formatter(new Poco::PatternFormatter("%h:%M:%S.%i- %t"));
formatter->setProperty(Poco::FileChannel::PROP_TIMES, "local");
AutoPtr<Poco::Channel> formattingChannel(new Poco::FormattingChannel(formatter, pChannel));
m_logger.setChannel(formattingChannel);C:\trunk\Foundation\samples\Logger\bin>type c:\temp\log
The system cannot find the file specified.
C:\trunk\Foundation\samples\Logger\bin>date
The current date is: Fri 10/19/2012
C:\trunk\Foundation\samples\Logger\bin>time
The current time is: 15:44:07.44
C:\trunk\Foundation\samples\Logger\bin>.\Loggerd.exe
C:\trunk\Foundation\samples\Logger\bin>type C:\temp\test.log
03:44:11.385- testUsers browsing this forum: No registered users and 0 guests