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

Publish the specified log `record` with the given `context`&period;

== Synopses

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

Publish the specified log `record` with the given `context`&period;


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

[.small]#xref:BloombergLP/ball/FileObserver/publish-03.adoc[_» more&period;&period;&period;_]#

Publish the specified log `record` with the given `context`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
xref:BloombergLP/ball/FileObserver/publish-04.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/FileObserver/publish-04.adoc[_» more&period;&period;&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]#
