[#BloombergLP-ball-CstdioObserver-publish-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CstdioObserver.adoc[CstdioObserver]::publish
:relfileprefix: ../../../
:mrdocs:

Process the specified log record having the specified publishing context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
publish(
    xref:bsl/shared_ptr-0a.adoc[bsl::shared&lowbar;ptr&lt;Record const&gt;] const& record,
    xref:BloombergLP/ball/Context.adoc[Context] const& context) override;
----

== Description

Process the specified log `record` having the specified publishing `context`&period; Print `record` and `context` to the `FILE &ast;` supplied at construction&period; The behavior is undefined if `record` or `context` is modified during the execution of this method&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *record*
| log record to publish
| *context*
| publication context for `record`
|===


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