<div dir="ltr">RFC5424 requires timestamps in a strict subset of RFC3339. Currently, oslo.log has no way to provide dates in this format without specifying a custom logging formatter, which means that oslo.log is incapable of providing RFC5424-compliant log messages.<div><br></div><div>I've proposed a proof-of-concept to add that capability, in the form of a new %(rfc3339time)s variable that can be used in log formats, at <a href="https://review.openstack.org/#/c/256584/">https://review.openstack.org/#/c/256584/</a>. This is obviously still in the proof-of-concept phase, but I was hoping to get some comments on it to see if people think this is a sane and reasonable approach before I go any further.</div><div><br></div><div>The other approach that makes sense to me would be to add a magic option to the log_date_format option (e.g., log_date_format = rfc3339 or log_date_format= rfc5424) that made %(asctime)s into an RFC3339 timestamp.</div><div><br></div><div>Thoughts or suggestions? Thanks.</div><div><div><br></div>-- <br><div class="gmail_signature">Chris St. Pierre</div>
</div></div>