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

`publish` overloads

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/ball/Observer/publish-0e.adoc[publish](
    xref:BloombergLP/ball/Record.adoc[Record] const& record,
    xref:BloombergLP/ball/Context.adoc[Context] const& context);
----

[.small]#xref:BloombergLP/ball/Observer/publish-0e.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/ball/StreamObserver/publish-0d9.adoc[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;
----

[.small]#xref:BloombergLP/ball/StreamObserver/publish-0d9.adoc[_» more&period;&period;&period;_]#


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