[#BloombergLP-ball-FilteringObserver-publish-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FilteringObserver.adoc[FilteringObserver]::publish :relfileprefix: ../../../ :mrdocs: `publish` overloads == Synopses Declared in `<ball_filteringobserver.h>` Process the specified log `record` having the specified publishing `context`. [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..._]# Process the specified log `record` having the specified publishing `context`. Forward `record` and `context` to the `publish` method of the observer supplied at construction if the filter callback supplied at construction returns `true` for `record` and `context`, and ignore (filter out) `record` and `context` otherwise. The behavior is undefined if `record` or `context` is modified during the execution of this method. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void xref:BloombergLP/ball/FilteringObserver/publish-0b.adoc[publish]( xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<Record const>] const& record, xref:BloombergLP/ball/Context.adoc[Context] const& context) override; ---- [.small]#xref:BloombergLP/ball/FilteringObserver/publish-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#