[#BloombergLP-ball-ObserverFormatterImp-setFormat]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ObserverFormatterImp.adoc[ObserverFormatterImp]::setFormat
:relfileprefix: ../../../
:mrdocs:

Set the log record format specifications for this object according to the specified `format`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setFormat(std::string&lowbar;view const& format);
----

== Description

Return 0 on success, and a non&hyphen;zero value otherwise&period; This method has no effect on format if `format` is not a valid format specification&period; If `format` does not start with a scheme (it has no &quot;&colon;&sol;&sol;&quot; in it) use the default &quot;text&quot; scheme&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *format*
| format configuration string used to create the formatter
|===


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