[#BloombergLP-ball-StreamObserver-setRecordFormatFunctor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/StreamObserver.adoc[StreamObserver]::setRecordFormatFunctor
:relfileprefix: ../../../
:mrdocs:

Set the formatting functor used when writing records to the stream of this stream observer to the specified `formatter` functor&period; Note that a default format (&quot;n%d %p %t %s %f %l %c %m %un&quot;) is in effect until this method or `setFormat` is called (see `ball&lowbar;recordstringformatter`)&period; Also note that the observer emits newline characters at the beginning and at the end of a log record by default, so the user needs to add them explicitly to the format string to preserve this behavior&period; Note that this method is not able to communicate the timezone default settings to the `formatter`, prefer `setFormat`&period;

== Synopsis

Declared in `&lt;ball&lowbar;streamobserver&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setRecordFormatFunctor(xref:BloombergLP/ball/StreamObserver/RecordFormatter.adoc[RecordFormatter] const& formatter);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
