[#BloombergLP-ball-TestObserver-publish-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/TestObserver.adoc[TestObserver]::publish
:relfileprefix: ../../../
:mrdocs:

Store the most recently published log `record` and `context`&period;

== Synopsis

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

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

== Description

DEPRECATED&colon; Use the alternative `publish` overload instead&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]#
