|
@@ -208,7 +208,7 @@ CLogFormatter::CLogFormatter() : CLogFormatter("%m") { }
|
|
|
|
|
|
CLogFormatter::CLogFormatter(const std::string & pattern) : pattern(pattern)
|
|
CLogFormatter::CLogFormatter(const std::string & pattern) : pattern(pattern)
|
|
{
|
|
{
|
|
- boost::posix_time::time_facet * facet = new boost::posix_time::time_facet("%H:%M:%S");
|
|
|
|
|
|
+ boost::posix_time::time_facet * facet = new boost::posix_time::time_facet("%H:%M:%S.%f");
|
|
dateStream.imbue(std::locale(dateStream.getloc(), facet));
|
|
dateStream.imbue(std::locale(dateStream.getloc(), facet));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -370,4 +370,4 @@ void CLogFileTarget::write(const LogRecord & record)
|
|
}
|
|
}
|
|
|
|
|
|
const CLogFormatter & CLogFileTarget::getFormatter() const { return formatter; }
|
|
const CLogFormatter & CLogFileTarget::getFormatter() const { return formatter; }
|
|
-void CLogFileTarget::setFormatter(const CLogFormatter & formatter) { this->formatter = formatter; }
|
|
|
|
|
|
+void CLogFileTarget::setFormatter(const CLogFormatter & formatter) { this->formatter = formatter; }
|