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

`publish` overloads

== Synopses

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

Process the specified log `record` having the specified publishing `context` by writing `record` and `context` to the current log file if file logging is enabled for this file observer, and to `stdout` if the severity of `record` is at least as severe as the value returned by `stdoutThreshold`&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;_]#

Process the record referenced by the specified &apos;record&apos; shared pointer having the specified publishing &apos;context&apos; by writing the record and &apos;context&apos; to the current log file if file logging is enabled for this file observer, and to &apos;stdout&apos; if the severity of &apos;record&apos; is at least as severe as the value returned by &apos;stdoutThreshold&apos;&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;_]#


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