[#BloombergLP-ball-CstdioObserver-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CstdioObserver.adoc[CstdioObserver]::CstdioObserver
:relfileprefix: ../../../
:mrdocs:

Create a cstdio observer that transmits log records to the specified `stream`&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period; Note that a default record format is in effect for cstdio logging (see `setFormat`)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
CstdioObserver(
    FILE* stream,
    xref:BloombergLP/ball/CstdioObserver/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----


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