[#BloombergLP-ball-AsyncFileObserver-publish-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/AsyncFileObserver.adoc[AsyncFileObserver]::publish
:relfileprefix: ../../../
:mrdocs:

`publish` overloads

== Synopses

Declared in `&lt;ball&lowbar;asyncfileobserver&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 record referenced by the specified `record` shared pointer having the specified publishing `context` by writing the record and `context` to the current log file if file logging is enabled for this async file observer, and to `stdout` if the severity of `record` is at least as severe as the value returned by `stdoutThreshold`&period; `record` and `context` are appended to the record queue and published (asynchronously) later by the publication thread&period; If the queue is full, `record` and `context` are discarded unless the constructor taking `dropRecordsOnFullQueueThreshold` was used&semi; if `dropRecordsOnFullQueueThreshold` was supplied with a `Severity&colon;&colon;Level` at construction, `record` and `context` are discarded only if the severity of `record` is below that threshold, otherwise, this method will block waiting until space is available on the queue&period; See &lcub;Log Record Queue&rcub; for further information&period;


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


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