Boost C++ Libraries: Ticket #8839: Default timestamp format https://svn.boost.org/trac10/ticket/8839 <p> The default timestamp format should be: </p> <blockquote> <p> %Y-%m-%d %H:%M:%S.%f </p> </blockquote> <p> instead of: </p> <blockquote> <p> %Y-%b-%d %H:%M:%S.%f </p> </blockquote> <p> just in case a sorting of the log records according to timestamp is needed. (For example when log records get out of order due to threading.) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8839 Trac 1.4.3 Andrey Semashev Thu, 18 Jul 2013 06:24:11 GMT <link>https://svn.boost.org/trac10/ticket/8839#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8839#comment:1</guid> <description> <p> What do you mean by "default timestamp format"? There is no default in log::expressions::format_date_time placeholder. If you format timestamps with the log::expressions::attr placeholder then formatting is performed by the regular operator&lt;&lt; for timestamps, which is provided by Boost.<a class="missing wiki">DateTime</a>. I don't think it is reasonable to change that operator behavior. </p> </description> <category>Ticket</category> </item> <item> <author>lcarreon@…</author> <pubDate>Thu, 18 Jul 2013 06:41:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8839#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8839#comment:2</guid> <description> <p> What I mean is when you use %<a class="missing wiki">TimeStamp</a>% in a format string, it should format the timestamp using the format %y-%m-%d %M:%H:%S.%f. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Thu, 18 Jul 2013 06:51:04 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8839#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8839#comment:3</guid> <description> <p> When no formatter factory is registered for the "<a class="missing wiki">TimeStamp</a>" attribute, the default factory will create a formatter similar to the log::expressions::attr placeholder. This is because the library has no knowledge of this attribute and does no special treatment. You have to register your own factory to change that. </p> <p> I can try to change the default factory so that the generated formatter behaves differently for different types. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Sat, 25 Jul 2015 21:24:48 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8839#comment:4 https://svn.boost.org/trac10/ticket/8839#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> The format has been changed in <a class="ext-link" href="https://github.com/boostorg/log/commit/7d7b70e78bb6a3ec4e1752fed34717b3b80139c8"><span class="icon">​</span>https://github.com/boostorg/log/commit/7d7b70e78bb6a3ec4e1752fed34717b3b80139c8</a>. </p> Ticket