[#BloombergLP-ball-FileObserver2-publish-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/FileObserver2.adoc[FileObserver2]::publish :relfileprefix: ../../../ :mrdocs: 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 file observer. The method has no effect if file logging is not enabled, in which case `record` is dropped. == Synopsis Declared in `<ball_fileobserver2.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void publish( xref:bsl/shared_ptr-0a.adoc[bsl::shared_ptr<Record const>] const& record, xref:BloombergLP/ball/Context.adoc[Context] const& context) override; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#