[#BloombergLP-ball-FileObserver-setLogFormat]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver.adoc[FileObserver]::setLogFormat
:relfileprefix: ../../../
:mrdocs:

Same as `setLogFormats`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
setLogFormat(
    char const* logFileFormat,
    char const* stdoutFormat);
----

== Return Value

0 if both formats are valid, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *logFileFormat*
| format specification for log&hyphen;file records
| *stdoutFormat*
| format specification for `stdout` records
|===


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