[#BloombergLP-ball-ObserverAdapter-publish-0c2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/ObserverAdapter.adoc[ObserverAdapter]::publish
:relfileprefix: ../../../
:mrdocs:

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

== Synopsis

Declared in `&lt;ball&lowbar;observeradapter&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 record referred by the specified log shared pointer `record` having the specified publishing `context`&period; Note that classes that derive from `ObserverAdapter` should *not* implement this method&period;

== Parameters

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


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